public static void main(String[] args) throws Exception {
runTestApp();
// print the PIDs and other application info
MonitoredHost monitoredHost = MonitoredHost.getMonitoredHost(new HostIdentifier((String) null));
Set<Integer> activeVmPids = monitoredHost.activeVms();
for (Integer vmPid : activeVmPids) {
MonitoredVm mvm = monitoredHost.getMonitoredVm(new VmIdentifier(vmPid.toString()));
System.out.println("" +
"pid: " + vmPid.intValue() + ", " +
"main class: " + MonitoredVmUtil.mainClass(mvm, true) + ", " +