Max CPU consumption in IntellijIDEA when using the plugin
IntelliJ IDEA 2016.2.5 (latest at the time of writing) Build #IU-162.2228.15, built on October 14, 2016 JRE: 1.8.0_112-release-287-b2 x86_64 JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o Plugin: 1.7.5.3-idea14
Custom VM settings: -Xms2048m -Xmx4096m -XX:ReservedCodeCacheSize=64m -XX:+UseCodeCacheFlushing -XX:+UseCompressedOops
After a few saves the editor consumes all CPU (4 cores) and blocks everything. I have to restart to unblock.
Please have a look, this makes the plugin useless. Thanks, Marius
Comments (11)
-
repo owner -
repo owner Marius, it looks like you might have attached the logs and then removed them. If there are issues posting them here, feel free to email them to support@illuminatedcloud.com.
-
reporter Here is the content of all the folder. https://we.tl/6U3kRsH6HK
Please have a look over today and yesterday's logs.
-
repo owner Marius, thanks for the logs. I see a few things here that are suspicious. The first I see is something I need to address (and already have locally to be included in a short-term patch):
java.lang.IllegalStateException: Must be invoked on the EDT.
However, it also looks like you're constantly running low on memory:
2016-11-02 12:56:05,505 [13581713] INFO - .openapi.util.LowMemoryWatcher - Low memory signal received.
I can see from your original comment that you're configured for a minimum heap of 2GB and a max heap of 4GB, so that's very curious to me.
Let me keep scanning the logs and I'll see what else stands out to me. I'll keep you posted, and once I've identified a few things...particularly things that I can and have addressed...I'll let you know next steps.
-
repo owner Do you mind scanning the contents of
/Users/marius/Library/Preferences/IntelliJIdea2016.2/idea.vmoptions
to see if it's overriding your heap size settings? That's being specified in your startup args as the VM Options to be used. -
reporter Sorry for this delay. The content of the file seems to be the same as I put in Help - Custom VM Options: cat /Users/marius/Library/Preferences/IntelliJIdea2016.2/idea.vmoptions -Xms2048m -Xmx4096m -XX:ReservedCodeCacheSize=64m -XX:+UseCodeCacheFlushing
When I have the CPU spikes the occupied memory by the IDEA process is usually around ~2.6Gb.
-
repo owner Okay. Thanks for following up. Let me keep scanning the logs and thread dumps you provided to see if there's anything telling there. I'll keep you posted.
-
repo owner Marius, sorry for the long delay responding. I had a business trip most of last week and ended up with a bug when I got back that knocked me out for several additional days.
So looking at these logs, unfortunately I'm not seeing anything definitive. Would you mind switching to an Oracle Java 8 JRE to see if the same problem occurs? I've reported several issues with the bundled OpenJDK JRE to JetBrains, though they've mostly been cosmetic issues and not anything like this. I'd just like to see if perhaps the behavior is different with the Oracle JRE as a next step.
-
reporter Hello Scott,
I've upgraded to the latest version of the plugin and the issue is not reproduced any more. I will let you know if I will stumble again upon this.
Thanks,
-
repo owner - changed status to resolved
Okay, glad to hear. I'm going to resolve this for now, but if you see the problem again, please let me know for sure!
-
repo owner - removed component
Removing component: IntelliJ IDEA (automated comment)
- Log in to comment
Marius, would you mind sending me your
idea.log
from when this happened? You can find it using Help>Show Log in Finder/Explorer. Since something was spiking the CPUs, I would imagine the logs may be saturated, so you may need to send all logs in that directory.