I am writing a simple program and use jconsole.exe to control heap size.
public class HeapTest { public static void main(String[] args) { while(true) { } } }
Here is the result 
I do not understand why the heap size continues to grow. I am not new to () any object in my program.
What is the heap used in my program?
I am not adding any additional arguments to jconsole.exe; just double click on it and then load the java process according to the PID.
Environment: Java 1.8.0_25 under windows 7
source share