What GC parameters is a JVM running with?

Posted by skaffman on Stack Overflow See other posts from Stack Overflow or by skaffman
Published on 2009-12-10T11:12:20Z Indexed on 2010/05/27 10:51 UTC
Read the original article Hit count: 157

I'm still investigating issues I have with GC tuning (see prior question), which involves lots of reading and experimentation.

Sun Java5+ JVMs attempt to automatically select the optimal GC strategy and parameters based on their environment, which is great, but I can't figure out how to query the running JVM to find out what those parameters are.

Ideally, I'd like to see what values of the various GC-related -XX options are being used, as selected automatically by the VM. If I had that, I could have a baseline to begin tweaking.

Anyone know to recover these values from a running VM?

© Stack Overflow or respective owner

Related posts about java

Related posts about garbage-collection