Hello,
I'm having trouble with tomcat 6 availability in hyperic, exactly as described in http://communities.vmware.com/message/1921247#1921247 however the fix described there of altering the ptql command does not work for me.
The tomcat installation is on a linux server, only it is being run under jsvc to daemonise the process, so it appears differently in the process table from a 'normal' tomcat installation. I have modified the ptql command such that it works from sigar:
sigar> ps State.Name.eq=jsvc,Args.*.ct=catalina.home
3054 root 11:50 8.0M 360K 256K S 0:7 jsvc.exec
3252 root 12:02 8.0M 348K 248K S 0:0 jsvc.exec
3253 apache 12:02 2.4G 260M 19M S 18:6 jsvc.exec
3761 apache 12:33 2.3G 11M 7.0M R 0:0 jsvc.exec
The JMX setup seems to be fine, with things like the JSP monitor etc. working ok and I can see the servers memory usage, however server availability is reported as 0%, with the thread pools group reporting a '?' icon...Going in to look at either the jk or http thread pools specifically reports:
This resource is turned off or has not been configured properly.
The problem is: Invalid configuration: Error retrieving value: Attribute not found [Catalina:type=ThreadPool,name=jk-8009:currentThreadBusy]: javax.management.AttributeNotFoundException: Cannot find attribute currentThreadBusy for org.apache.tomcat.util.threads.ThreadPool@751abd68
Please turn on the server, or fix its Configuration Properties.
This machine is running an iptables firewall, but disabling this does not seem to resolve the problem, so I suspect the cause lies elsewhere. Does anyone have any idea what I'm doing wrong?
Thanks,
James
I'm having trouble with tomcat 6 availability in hyperic, exactly as described in http://communities.vmware.com/message/1921247#1921247 however the fix described there of altering the ptql command does not work for me.
The tomcat installation is on a linux server, only it is being run under jsvc to daemonise the process, so it appears differently in the process table from a 'normal' tomcat installation. I have modified the ptql command such that it works from sigar:
sigar> ps State.Name.eq=jsvc,Args.*.ct=catalina.home
3054 root 11:50 8.0M 360K 256K S 0:7 jsvc.exec
3252 root 12:02 8.0M 348K 248K S 0:0 jsvc.exec
3253 apache 12:02 2.4G 260M 19M S 18:6 jsvc.exec
3761 apache 12:33 2.3G 11M 7.0M R 0:0 jsvc.exec
The JMX setup seems to be fine, with things like the JSP monitor etc. working ok and I can see the servers memory usage, however server availability is reported as 0%, with the thread pools group reporting a '?' icon...Going in to look at either the jk or http thread pools specifically reports:
This resource is turned off or has not been configured properly.
The problem is: Invalid configuration: Error retrieving value: Attribute not found [Catalina:type=ThreadPool,name=jk-8009:currentThreadBusy]: javax.management.AttributeNotFoundException: Cannot find attribute currentThreadBusy for org.apache.tomcat.util.threads.ThreadPool@751abd68
Please turn on the server, or fix its Configuration Properties.
This machine is running an iptables firewall, but disabling this does not seem to resolve the problem, so I suspect the cause lies elsewhere. Does anyone have any idea what I'm doing wrong?
Thanks,
James