I'm helping develop a java application using my Windows 7 machine, which has Java 8 Update 45. I'm noticing a substantial difference in how much memory Windows Task Manager says is being used by the application (through the javaw.exe Image), and what Eclipse Memory Analyzer/Java Mission Control reports.
Example: Java Mission Control reports 150 MB of Java Heap Memory used, while Windows says 303 MB of Working Set used for javaw.exe. I understand there is probably some overhead for JVM itself, GC, etc.
But I also see it doing GC. After a bit of clicking around to make memory grow, JMC shows GC was performed and says 200 MB of heap used. Windows reports 619 MB (it never went down). Is Windows not displaying memory usage by Java properly? Something with the application cause this to happen?