I have a webapp running on tomcat and I want to look at garbage collection during runtime using jstat.
I have the command:
jstat.exe -gc <vmid> 1000
How can I find what the vmid is?
vmid is essentially a PID of JVM process
You have multiple options to find PID of your JVM
psIf you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With