Why does JVM heap keep growing?

前端 未结 3 490
-上瘾入骨i
-上瘾入骨i 2021-02-08 18:52

I write a simple program and use jconsole.exe to monitor its heap size.

public class HeapTest {
    public static void main(String[] args) {
        while(true)          


        
3条回答
  •  春和景丽
    2021-02-08 19:18

    You can use JConsole alternative command jmap monitor java process, and you can find java heap size is stationary.

提交回复
热议问题