time since JVM started

后端 未结 5 1082
眼角桃花
眼角桃花 2020-12-04 19:12

Is there a way to find out the time since the JVM started?

Of course, other than starting a timer somewhere near the beginning of main, because in my sc

5条回答
  •  鱼传尺愫
    2020-12-04 19:33

    Perhaps worth mentioning that if you don't want to write any code run up jconsole from the java bin directory and click VM Summary and see the Uptime and Process CPU time values.

提交回复
热议问题