title: Report on Actual GC Settings in JVM
body: <p>How can I report on the GC settings from java?  I know that I <em>RuntimeMXBean</em> can report input args via <em>getInputArguments()</em> and I could use that to report the settings.  I'd rather interrogate the GC object and report on the actual settings there.</p>
  
  <p>Is there a way to access these settings from within a java application?</p>
  
  <p>The following command shows all kinds of setting which I'm not setting and I want to write a small app to verify the veracity of these settings</p>
  
  <pre><code>java -XX+PrintCommandLineFlags
  </code></pre>