Created
March 28, 2016 18:52
-
-
Save vitorvezani/bf32ae1910bb90d0f15f to your computer and use it in GitHub Desktop.
Show All Java VM properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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