What is the default maximum heap size for Sun's JVM from Java SE 6?

前端 未结 6 1118
隐瞒了意图╮
隐瞒了意图╮ 2020-11-29 18:38

What is the default maximum heap size for Sun\'s JVM from Java SE 6 (i.e. equivalent to setting -Xmx)?

Looks like for Java SE 5 with a server-class machine, it\'s

6条回答
  •  -上瘾入骨i
    2020-11-29 18:52

    one way is if you have a jdk installed , in bin folder there is a utility called jconsole(even visualvm can be used). Launch it and connect to the relevant java process and you can see what are the heap size settings set and many other details

    When running headless or cli only, jConsole can be used over lan, if you specify a port to connect on when starting the service in question.

提交回复
热议问题