PyCharm 2021.2 out of memory
已回答
I have been using PyCharm community edition on a Raspberry Pi for a couple of years, upgrading as each new version came out. Everything was ok up to 2021.1. However, 2021.2 does not run. idea.log shows Java out of memory errors. e.g.
Caused by: java.lang.OutOfMemoryError: Map failed
at java.base/sun.nio.ch.FileChannelImpl.map0(Native Method)
at java.base/sun.nio.ch.FileChannelImpl.map(FileChannelImpl.java:1013)
... 20 more
I have increased the -Xmx in pycharm.vmoptions tp 800, which under the old version is given as a maximum for 32-bit systems.
Are there any other adjustments I could try to get the new version to work?
Thanks,
Julian
请先登录再写评论。
Hello,
Can you please provide the IDE logs after restarting and reproducing the problem? (https://intellij-support.jetbrains.com/hc/en-us/articles/207241085-Locating-IDE-log-files)
The files can be uploaded at https://uploads.jetbrains.com (do not forget to specify the UploadID)
Thanks. Upload id: 2021_09_22_Zmdx866X7gfWeyZX (file: idea.log)
It looks like there is not enough space for the IntelliJ IDEA process to map the index files into memory. A smaller heap size will have less chance of this issue occurring on 32-bit system.
Switching to 64 bit is probably better, especially if you have a large project.
Please note that we stopped 32-bit systems support a few releases ago https://blog.jetbrains.com/idea/2021/04/end-of-support-for-32-bit-operating-systems-in-intellij-based-ides .