【发布时间】:2021-02-25 15:42:46
【问题描述】:
我最近在使用 PyCharm 5.0.4 时出现内存不足错误 消息是:
There's not enough memory to perform the requested operation.
Please increase Xmx setting and shutdown PyCharm for change to take effect.
我已经将值增加到 1024 MB,据我所知,我的 Python 或系统设置没有任何变化。
Xmx 内存的大小究竟管理什么,我将如何调试导致问题的原因?
【问题讨论】:
-
没有可显示的代码。它完全独立于我当时正在运行的任何东西。有时甚至会在启动过程中发生。
-
Xmx 设置 jvm 可以使用的最大内存 - 您可以尝试将其设置为可用内存的 50% 或 75%(如 Windows 上的任务管理器所示)。