ubuntu 18.04 pycharm 2020.2: Out of Memory
Good day.
When I work with .ipynb files and real memory usage of 5 GB (htop), I regularly get the message "Out of Memory. ... Please increase xmx setting..."
The computer has 32 GB of RAM.
My settings:
-Xms512m
-Xmx12096m
-XX:ReservedCodeCacheSize=256m
-XX:+UseConcMarkSweepGC
-XX:SoftRefLRUPolicyMSPerMB=128
-ea
-XX:CICompilerCount=2
-Dsun.io.useCanonPrefixCache=false
-Djdk.http.auth.tunneling.disabledSchemes=""
-XX:+HeapDumpOnOutOfMemoryError
-XX:-OmitStackTraceInFastThrow
-Djdk.attach.allowAttachSelf=true
-Dkotlinx.coroutines.debug=off
-Djdk.module.illegalAccess.silent=true
-Dawt.useSystemAAFontSettings=lcd
-Dsun.java2d.renderer=sun.java2d.marlin.MarlinRenderingEngine
-Dsun.tools.attach.tmp.only=true
-XX:MaxMetaspaceSize=512m
What do I need to do to make IDE work normally.
Sincerely, Alexander
请先登录再写评论。
First of all you probably never should need to raise -Xmx over 4 GB, so I would lower it, as it may cause other issues.
Than, make sure you're using the latest version (2020.2.1) to get the latest bugfixes, and try disabling all custom/downloaded plugins.
If the issue is still reproduced, wait when the memory usage goes to around 4 GB, and capture memory snapshot according to https://intellij-support.jetbrains.com/hc/en-us/articles/207241235-Reporting-performance-problems
Create a ticket on https://youtrack.jetbrains.com/, attach Logs from **Help | Collect Logs and Diagnostic Data** and memory snapshot.
For large files, you can use our uploading service at https://uploads.jetbrains.com/ , and provide upload ID in description.