M***l 发帖数: 123 | 1 我有个程序里面有loop, 程序run着run着就kill掉了,像是memory不够,但是每个循环
里结果输出后我都把object rm掉了,按理说不该内存不够。
请问大家知道怎么查程序运行中剩下的memory大小吗?
非常感谢。 | a***d 发帖数: 336 | 2 there may be other issues in the code if R just got killed when running the
code. usually R will report not enough memory error instead of quitting.
that said, only deleting an object does not release the memory.after
deleting objects try run :
gc()
this will release memory and show how much memory is in use.But it is also
well known that gc() does not solve all memory shortage problems.
【在 M***l 的大作中提到】 : 我有个程序里面有loop, 程序run着run着就kill掉了,像是memory不够,但是每个循环 : 里结果输出后我都把object rm掉了,按理说不该内存不够。 : 请问大家知道怎么查程序运行中剩下的memory大小吗? : 非常感谢。
|
|