Java Code Examples for com.sun.management.HotSpotDiagnosticMXBean#getDiagnosticOptions()
The following examples show how to use
com.sun.management.HotSpotDiagnosticMXBean#getDiagnosticOptions() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: MemoryUtil.java From antsdb with GNU Lesser General Public License v3.0 | 6 votes |
public static void main(String[] args) { List<BufferPoolMXBean> pools = ManagementFactory.getPlatformMXBeans(BufferPoolMXBean.class); for (BufferPoolMXBean pool:pools) { System.out.println(String.format( "%s %d/%d", pool.getName(), pool.getMemoryUsed(), pool.getTotalCapacity())); } RuntimeMXBean RuntimemxBean = ManagementFactory.getRuntimeMXBean(); for (String arg:RuntimemxBean.getInputArguments()) { System.out.println(arg); } HotSpotDiagnosticMXBean hsdiag = ManagementFactory.getPlatformMXBean(HotSpotDiagnosticMXBean.class); for (VMOption i:hsdiag.getDiagnosticOptions()) { System.out.println(i.getName() + ":" + i.getValue()); } System.out.println(hsdiag.getVMOption("MaxDirectMemorySize")); System.out.println(sun.misc.VM.maxDirectMemory()); System.out.println(getDirectMemoryUsed()); }
Example 2
Source File: SetAllVMOptions.java From dragonwell8_jdk with GNU General Public License v2.0 | 5 votes |
private static void setAllVMOptions(HotSpotDiagnosticMXBean mbean) { List<VMOption> options = mbean.getDiagnosticOptions(); for (VMOption opt : options) { String name = opt.getName(); String val = opt.getValue(); System.out.println("option: "+name+"="+val); mbean.setVMOption(name,val); } }
Example 3
Source File: SetAllVMOptions.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
private static void setAllVMOptions(HotSpotDiagnosticMXBean mbean) { List<VMOption> options = mbean.getDiagnosticOptions(); for (VMOption opt : options) { String name = opt.getName(); String val = opt.getValue(); System.out.println("option: "+name+"="+val); mbean.setVMOption(name,val); } }
Example 4
Source File: SetAllVMOptions.java From jdk8u-dev-jdk with GNU General Public License v2.0 | 5 votes |
private static void setAllVMOptions(HotSpotDiagnosticMXBean mbean) { List<VMOption> options = mbean.getDiagnosticOptions(); for (VMOption opt : options) { String name = opt.getName(); String val = opt.getValue(); System.out.println("option: "+name+"="+val); mbean.setVMOption(name,val); } }
Example 5
Source File: SetAllVMOptions.java From hottub with GNU General Public License v2.0 | 5 votes |
private static void setAllVMOptions(HotSpotDiagnosticMXBean mbean) { List<VMOption> options = mbean.getDiagnosticOptions(); for (VMOption opt : options) { String name = opt.getName(); String val = opt.getValue(); System.out.println("option: "+name+"="+val); mbean.setVMOption(name,val); } }
Example 6
Source File: SetAllVMOptions.java From jdk8u-jdk with GNU General Public License v2.0 | 5 votes |
private static void setAllVMOptions(HotSpotDiagnosticMXBean mbean) { List<VMOption> options = mbean.getDiagnosticOptions(); for (VMOption opt : options) { String name = opt.getName(); String val = opt.getValue(); System.out.println("option: "+name+"="+val); mbean.setVMOption(name,val); } }
Example 7
Source File: SetAllVMOptions.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
private static void setAllVMOptions(HotSpotDiagnosticMXBean mbean) { List<VMOption> options = mbean.getDiagnosticOptions(); for (VMOption opt : options) { String name = opt.getName(); String val = opt.getValue(); System.out.println("option: "+name+"="+val); mbean.setVMOption(name,val); } }
Example 8
Source File: SetAllVMOptions.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
private static void setAllVMOptions(HotSpotDiagnosticMXBean mbean) { List<VMOption> options = mbean.getDiagnosticOptions(); for (VMOption opt : options) { String name = opt.getName(); String val = opt.getValue(); System.out.println("option: "+name+"="+val); mbean.setVMOption(name,val); } }
Example 9
Source File: SetAllVMOptions.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
private static void setAllVMOptions(HotSpotDiagnosticMXBean mbean) { List<VMOption> options = mbean.getDiagnosticOptions(); for (VMOption opt : options) { String name = opt.getName(); String val = opt.getValue(); System.out.println("option: "+name+"="+val); mbean.setVMOption(name,val); } }
Example 10
Source File: SetAllVMOptions.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
private static void setAllVMOptions(HotSpotDiagnosticMXBean mbean) { List<VMOption> options = mbean.getDiagnosticOptions(); for (VMOption opt : options) { String name = opt.getName(); String val = opt.getValue(); System.out.println("option: "+name+"="+val); mbean.setVMOption(name,val); } }
Example 11
Source File: SetAllVMOptions.java From jdk8u-jdk with GNU General Public License v2.0 | 5 votes |
private static void setAllVMOptions(HotSpotDiagnosticMXBean mbean) { List<VMOption> options = mbean.getDiagnosticOptions(); for (VMOption opt : options) { String name = opt.getName(); String val = opt.getValue(); System.out.println("option: "+name+"="+val); mbean.setVMOption(name,val); } }
Example 12
Source File: SetAllVMOptions.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
private static void setAllVMOptions(HotSpotDiagnosticMXBean mbean) { List<VMOption> options = mbean.getDiagnosticOptions(); for (VMOption opt : options) { String name = opt.getName(); String val = opt.getValue(); System.out.println("option: "+name+"="+val); mbean.setVMOption(name,val); } }
Example 13
Source File: GetDiagnosticOptions.java From jdk8u_jdk with GNU General Public License v2.0 | 4 votes |
private static void checkDiagnosticOptions(HotSpotDiagnosticMXBean mbean) { List<VMOption> options = mbean.getDiagnosticOptions(); for (VMOption opt : options) { System.out.println("option: "+opt.getName()+"="+opt.getValue()); } }
Example 14
Source File: GetDiagnosticOptions.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 4 votes |
private static void checkDiagnosticOptions(HotSpotDiagnosticMXBean mbean) { List<VMOption> options = mbean.getDiagnosticOptions(); for (VMOption opt : options) { System.out.println("option: "+opt.getName()+"="+opt.getValue()); } }
Example 15
Source File: GetDiagnosticOptions.java From openjdk-jdk8u with GNU General Public License v2.0 | 4 votes |
private static void checkDiagnosticOptions(HotSpotDiagnosticMXBean mbean) { List<VMOption> options = mbean.getDiagnosticOptions(); for (VMOption opt : options) { System.out.println("option: "+opt.getName()+"="+opt.getValue()); } }
Example 16
Source File: GetDiagnosticOptions.java From jdk8u-jdk with GNU General Public License v2.0 | 4 votes |
private static void checkDiagnosticOptions(HotSpotDiagnosticMXBean mbean) { List<VMOption> options = mbean.getDiagnosticOptions(); for (VMOption opt : options) { System.out.println("option: "+opt.getName()+"="+opt.getValue()); } }
Example 17
Source File: GetDiagnosticOptions.java From jdk8u60 with GNU General Public License v2.0 | 4 votes |
private static void checkDiagnosticOptions(HotSpotDiagnosticMXBean mbean) { List<VMOption> options = mbean.getDiagnosticOptions(); for (VMOption opt : options) { System.out.println("option: "+opt.getName()+"="+opt.getValue()); } }
Example 18
Source File: GetDiagnosticOptions.java From jdk8u-dev-jdk with GNU General Public License v2.0 | 4 votes |
private static void checkDiagnosticOptions(HotSpotDiagnosticMXBean mbean) { List<VMOption> options = mbean.getDiagnosticOptions(); for (VMOption opt : options) { System.out.println("option: "+opt.getName()+"="+opt.getValue()); } }
Example 19
Source File: GetDiagnosticOptions.java From dragonwell8_jdk with GNU General Public License v2.0 | 4 votes |
private static void checkDiagnosticOptions(HotSpotDiagnosticMXBean mbean) { List<VMOption> options = mbean.getDiagnosticOptions(); for (VMOption opt : options) { System.out.println("option: "+opt.getName()+"="+opt.getValue()); } }
Example 20
Source File: GetDiagnosticOptions.java From openjdk-8 with GNU General Public License v2.0 | 4 votes |
private static void checkDiagnosticOptions(HotSpotDiagnosticMXBean mbean) { List<VMOption> options = mbean.getDiagnosticOptions(); for (VMOption opt : options) { System.out.println("option: "+opt.getName()+"="+opt.getValue()); } }