While either IntelliJ or Eclipse are running, I can see how much heap they are using from inside the application from the progress bar at the bottom.. it always indicates a
JVM memory usage can be explained by this image:
As you can see, it's not just -Xmx
. Total process memory would also include the -XX:PermSize
, stack size of all the threads, JVM memory used by the JIT and other internals. Don't forget about the memory mapped files which are also included in the process memory. IntelliJ IDEA uses memory mapped files for caches, so it can add several hundreds megabytes.
If you need the details, use some profiler like JConsole or YourKit.