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:

then there is resource usage issue.


Comments

Popular posts from this blog

neo4j - finding mutual friends in a cypher statement starting with three or more persons -

php - How to remove letter in front of the word laravel -

minify - Minimizing css files -