You can have a look @ https://stackoverflow.com/questions/2674292/suspending-the-jvm-for-a-limited-amount-of-time
– Lazycoder-007May 28 '20 at 05:50
1. Why freezing instead of just getting memory dump? 2. Do you mean heap dump or a process minidump? 3. [PsSuspend](https://learn.microsoft.com/ru-ru/sysinternals/downloads/pssuspend) can suspend/resume a process on Windows.
– apanginMay 28 '20 at 09:06
high load part is so quick that i cant get memory dump at that time. Also i cant edit the code to make it stop. So i thought my option is freezing JVM :)
– Bilguun BayartsengelMay 28 '20 at 10:02
1
I don't see why you can't get memory dump at the time you want. If you can invoke a command to freeze JVM, then you can invoke a command to make a dump. JVM is already "frozen" while dumping is in progress.
– apanginMay 28 '20 at 11:07