time since JVM started

后端 未结 5 1081
眼角桃花
眼角桃花 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:47

    if your jvm program running in linux, you can view the startTime use ps

    ps -p  -o stime,etime 
    

提交回复
热议问题