I'm looking for sample Java JMX code to access the values of JMX attributes from another VM.
With JConsole, I have no problem looking at java.lang/Memory/Attributes/HeapMemory
How would I get the same information from a Java program running in a VM?
Examples of any command line options needed, or other things that need to be started appreciated.