Pycharm is very laggy. Lags every time I switch to a different app and back to pycharm. Follow
Workspace:
Version: 2021.3.1
OS: MacOS (Chip: Apple M1 Max)
MacOS: 12.1
Ram: 64GB
Here's what's in my vmoptions:
-Xms3072m
-Xmx6144m
-XX:NewRatio=1
-XX:ReservedCodeCacheSize=2048m
-XX:+IgnoreUnrecognizedVMOptions
-XX:+UseG1GC
-XX:SoftRefLRUPolicyMSPerMB=50
-XX:CICompilerCount=2
-XX:+HeapDumpOnOutOfMemoryError
-XX:-OmitStackTraceInFastThrow
-ea
-Dsun.io.useCanonCaches=false
-Djdk.http.auth.tunneling.disabledSchemes=""
-Djdk.attach.allowAttachSelf=true
-Djdk.module.illegalAccess.silent=true
-Dkotlinx.coroutines.debug=off
Please sign in to leave a comment.
Hi, is there a reason to set -Xms so high? Does the issue reproduce if you set it to a more sane -Xms128m ?
If so, please submit an issue to https://youtrack.jetbrains.com with Logs from **Help | Collect Logs and Diagnostic Data** and CPU snapshot according to https://intellij-support.jetbrains.com/hc/en-us/articles/207241235-Reporting-performance-problems
It's not insane, so let's not be a goofball. A quick google search will pull up plenty of examples of higher values and Oracles own docs provide an example for large applications using Xms3584m.
But to answer your question, yes, I tried setting it to 128 and the issue seems to show up faster. I'll submit an issue.
I'm sorry, didn't mean any sort of goofballing (Poor choice of a word "sane" on my part). Raising -Xms or -Xmx significantly above the defaults have been shown to cause GC issues in some cases.
Please ping me with the link to the issue, I'll try to process it ASAP.
I appreciate the help. I'm gonna create a new issue, but let me know if I should be posting my logs under an existing related issue!
I tried installing a newer JDK and it's working as expected now!!
For anyone that had this issue, this is the JDK I updated to: https://github.com/JetBrains/JetBrainsRuntime/releases/tag/jbr11_0_13b1751.21
Thanks, glad to hear the issue is resolved.
By the way, build 1751.21 is the default build that comes with the 2021.3.1 version.
It seems that, for some reason, your IDE was using the older build.