1

I am running kill -3 or jstack on my application, I want to know if it is in GC pause during that time, Is there an easy way to find out from the output?

Does it answer while in GC pause? I would expect it to work nativly some how so yes.

Zamir
  • 1,492
  • 1
  • 12
  • 20

1 Answers1

2

see this answer, maybe it answers your question. Basically, the kill -3 will wait for the GC to be completed, or get to a safe point, so you can't notice it.

Community
  • 1
  • 1
oshai
  • 14,865
  • 26
  • 84
  • 140