IntelliJ on Mac using excessive resources
This is not always happening (or not always noticable), but with 2024.1.1 and 2023.3.6 and nothing actually happening - except with the IDE running - it is spawning over a dozen ‘java’ processes.
These all belong to IntelliJ, and when they're all there it's a cumulative memory grab of over 10GB. This makes the laptop pretty much unusable (Macbook Air M1) when it happens, and the amount of swap is extreme.
I've used this same setup for around 3 years now, but it's only been the last 3-4 months where this has been an issue. At the moment, I'm working with Java/Grails.
I have disabled all non-JB plugins to rule out any memory leak etc, and there are no files open in the IDE to trigger it.
As I'm writing this, they have now cleared, but at the point where it occurs, I have this:

Is this considered ‘normal’
请先登录再写评论。
What are the full command lines of these processes?
ps ax | grep “java”
Do you use build systems like Maven or Gradle in your project? Is there anything specific in your build files that can spawn these processes?
Please also provide the contents of the IDE About window.
Just in case anyone out there reads the thread, the usage is
ps ax | grep Java
without the quotesAs seen below, IntelliJ kicks off a number of
GroovyStarter
instances, which are the cause/symptomThe ‘About’ aspect is as noted:
IntelliJ IDEA 2023.3.6 (Ultimate Edition)
Build #IU-233.15026.9, built on March 21, 2024
Runtime version: 17.0.10+1-b1087.23 aarch64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
macOS 14.4.1
GC: G1 Young Generation, G1 Old Generation
Memory: 1024M
Cores: 8
Metal Rendering is ON
Registry:
debugger.valueTooltipAutoShowOnSelection=true
debugger.new.tool.window.layout=true
ide.experimental.ui=true
ide.images.show.chessboard=true
Non-Bundled Plugins:
com.intellij.plugins.watcher (233.13135.65)
com.intellij.aqua (233.15026.24)
org.intellij.grails (233.14475.9)
Kotlin: 233.15026.9-IJ
Thank you.
Can you also collect a CPU snapshot of when you see all those processes spawned? Help | Diagnostic Tools | Start / Stop CPU Usage Profiling
It can be uploaded privately to our server at https://uploads.jetbrains.com
I'll create a new bug report for this on YouTrack and attach the diagnostic data to it (privately) so that our developers can look into it.