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

php - Embed BBCode within itself not working -

three.js - how to load gltf in three JS -

sql server - T-SQL: Access DB objects in same schema without qualifying? -