Can anybody give me some guides on how to get the properties of a JVM after I created a JMX connection to it? I need to get those information programmatically. I searched for this without getting any hint. Any thoughts would be appreciated.
Have a look at JMX tutorial and examples.
The properties you want can be obtained from RuntimeMXBean.