Skip to content

Instantly share code, notes, and snippets.

@vitorvezani
Created March 28, 2016 18:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vitorvezani/bf32ae1910bb90d0f15f to your computer and use it in GitHub Desktop.
Save vitorvezani/bf32ae1910bb90d0f15f to your computer and use it in GitHub Desktop.
Show All Java VM properties
public void printProperties() {
RuntimeMXBean runtimeMxBean = ManagementFactory.getRuntimeMXBean();
List<String> arguments = runtimeMxBean.getInputArguments();
System.out.println(Arrays.toString(arguments.toArray()));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment