I'm trying to get information about a jar program running, especially the heap usage. But the only informarion I get is "sun.java.command". The properties regarding the heap usage return null.
VirtualMachine test = VirtualMachine.attach("" + id); System.out.println(test.getAgentProperties());
I used the code above to get the information of the properties.