On 12/19/2012 1:39 AM, Bernd Fehling wrote:
Hi Shawn,

actually I use munin for monitoring but just checked with jvisualvm
which also runs fine for remote monitoring.

You might try the following:
http://www.codefactorycr.com/java-visualvm-to-profile-a-remote-server.html

You have to:
- generate a policy file on the server to be monitored
- start jstatd on the server to be monitored
- have jmx enabled for jetty or tomcat or ...
- should have jmx protected with password

I have all the jmx setup for jetty, except for jmxremote.access. I am not doing any readwrite access, it's all read only. Remote monitoring is working - I can connect jconsole to JMX and see graph data. What I don't get is the "Threads" graph. It is greyed out and has no line. jconsole has no idea how many threads my app is using and can't show them to me.

I had never used jvisualvm before, so I tried it just now. It looks like jvisualvm can count the threads, but it can't get a thread dump or display the threads. I'm using oracle jdk 1.7.0_10 on the linux x64 server. The Win7 x64 machine I am trying jconsole and jvisualvm on right now has 1.7.0_03, but I have tried jconsole on 1.7.0_09 and 1.7.0_10 for Win7 x64 as well.When I get to work, I will try jvisualvm on 1.7.0_10.

Is the problem with threads expected?

Thanks,
Shawn

Reply via email to