Created
April 30, 2017 15:06
-
-
Save davidmigloz/994ccce422384700f9e82501ad0b469e to your computer and use it in GitHub Desktop.
Test JVM arguments.
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 class VmTest { | |
public static void main(String[] args) { | |
RuntimeMXBean runtimeMxBean = ManagementFactory.getRuntimeMXBean(); | |
List<String> arguments = runtimeMxBean.getInputArguments(); | |
for (String arg : arguments) { | |
System.out.println("Arg: " + arg); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment