Generate a Java thread dump without restarting.

后端 未结 5 1404
别跟我提以往
别跟我提以往 2020-12-06 18:13

I\'d like to create a thread that keeps track of the memory usage and cpu usage.

If the application reaches a high level, I want to generate an heap dump or a thread

5条回答
  •  借酒劲吻你
    2020-12-06 18:20

    Try “kill –QUIT” Process_id e.g

    kill -QUIT 2134
    

    This will trigger the thread dump without restarting it

提交回复
热议问题