public static void main(String[] args) throws Exception {
JmxProcess process = JsonUtils.getJmxProcess(new File("memorypool.json"));
new JsonPrinter(System.out).print(process);
Injector injector = Guice.createInjector(new JmxTransModule(null));
JmxTransformer transformer = injector.getInstance(JmxTransformer.class);
transformer.executeStandalone(process);
// for (int i = 0; i < 160; i++) {
// JmxUtils.execute(jmx);
// Thread.sleep(1000);
// }