我最近开始在使用PyCharm 5.0.4时出现内存不足错误,消息是: There's not enough memory to perform the requested operation.我已经将该值增加到1024MB,据我所知,在我的Python或系统设置中没有任何变化。 Xmx内存的大小到底是多少,我该如何调试导致这个问题的原因?
我打算根据每行中的关键字将一个总大小约为500MB的文件读取到一个字典中。dict([(l.split("\t")[2].strip("\""), l) for l in lines]) ## convert [(1,2), (3,4)] to {1:2, 3:4}
在内存为4 4GB的机器上运行时,python报告内存错误。