Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I open custom hsperfdata_root/PID after process shutdown?

I'm using docker to containerize my application and want to look at it's performance from host machine. I've mapped volume : "/opt/tmp/my_app/:/tmp", which contains hsperfdata_root

  • Can I somehow open heap and other information from that hsperfdata_root/PID in jmap or some other tool ?
  • Does container must be in Running state for such debugging or it might be shutdown ?
like image 876
Hejwo Avatar asked Nov 01 '25 10:11

Hejwo


1 Answers

The JDK includes the jstat tool for doing this. Try jstat -snap file:/tmp/hsperfdata_root.

like image 195
Alan Bateman Avatar answered Nov 04 '25 00:11

Alan Bateman



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!