title: What GC parameters is a JVM running with?
body: <p>I'm still investigating issues I have with GC tuning (see <a href="https://stackoverflow.com/questions/1841479/change-in-gc-behaviour-after-move-from-java5-to-6">prior question</a>), which involves lots of reading and experimentation.</p>
  
  <p>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.</p>
  
  <p>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.</p>
  
  <p>Anyone know to recover these values from a running VM?</p>