Skip to content

Instantly share code, notes, and snippets.

@davidmigloz
Created April 30, 2017 15:06
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save davidmigloz/994ccce422384700f9e82501ad0b469e to your computer and use it in GitHub Desktop.
Save davidmigloz/994ccce422384700f9e82501ad0b469e to your computer and use it in GitHub Desktop.
Test JVM arguments.
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