Accesing Memory utilization in remote jvm
Hi!
I tried to make a java program that communicate to a remote JVM via JMX and get some properties.
I don't have problems getting OS properties, or Threads, but i can't get memory utilization.
Anyone have an example to read the memory utilization in a remote jvm?
I make a program that take this values locally, with no problems.
Thanks!!!!!
Fabian,
Could you be a bit more specific about the problem you are seeing? What does your code look like, and what does it do? For example, do you get a ClassCastException when you try to access the MemoryUsage object? Or do you get an InstanceNotFoundException when you try to access the memory MBean? Or something else?
emcmanus,
I have a problem with the code!!!!!!!!
Now i have a program that get the memory utilization, OS porperties, and other jconsole style info from a remote JVM.
If you need or want the source code, send to me an email to ftome at bancopatagonia.com.ar and i replie whit th code