java - is JVM stopped while executing jmap? -
does java application continue running while jmap taking memory dump?
thanks
your application stopped. practical way accurate heap dump stop application activity while dump being created.
whether "brief" pause or "long" pause depends on how dumped. if use "-dump" dump entire heap, including unreachable objects. if use "-dump:live" dump reachable objects ... entails (at least) marking heap figure out objects reachable.
but if dumping gigabyte sized heap, expect pause time measured in seconds rather milliseconds.
re suggestion avoid stopping jvm using fork, turns out forking multi-threaded process can problematic:
- fork in multi-threaded program
- multithreaded fork
- http://www.linuxprogrammingblog.com/threads-and-fork-think-twice-before-using-them
then there is resource usage issue.
Comments
Post a Comment