Thank Garbage Collected languages. I just checked the IDEA config and found its maximum heap is set to 750 MB by default. You typically wouldn't need 32GB to run it.
I changed the maximum heap for my IntelliJ IDEA instances to 2GB and haven't seen a slowdown since. 750M is too low if you're working on a large project imo. Adding a dependency to my pom and immediately debugging used to cause the IDE to chug while it scanned everything.
somehnguy|6 years ago