1

I need to freeze JVM when load gets high in order to get memory dump of it. Is there any way to do it?

On Windows machine

  • You can have a look @ https://stackoverflow.com/questions/2674292/suspending-the-jvm-for-a-limited-amount-of-time – Lazycoder-007 May 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. – apangin May 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 Bayartsengel May 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. – apangin May 28 '20 at 11:07

0 Answers0