users@glassfish.java.net

monitoring in glassfish 3.1.1

From: <forums_at_java.net>
Date: Wed, 26 Sep 2012 17:15:01 -0500 (CDT)

Hi, I have deployed a REST webservice application in Glassfish 3.1.1 in a
cluster profile. I am attempting to monitor following statistics related to
http-thread-pool:
number of incoming requests waiting in the queue

average wait time for a request in the queue before being handled by a thread

and so on. Looking in the administration guide, I see following section which
has exactly what I need: *Thread Pool Monitoring Statistics* Use the
following dotted name pattern for thread pool statistics:
server.thread-pool.thread-pool.statistic averagetimeinqueue
averageworkcompletiontime currentbusythreads CountStatistic
currentnumberofthreads numberofavailablethreads So, to list the above
statistics, I first list the monitorable object available by issuing
following command: >./asadmin list --monitor "app-instance.com.*" No
monitoring data to report. Command list executed successfully. Where
app-instance is the name of the instance. app-cluster-config is the name of
the cluster configuration name. Next, I issue following command : >./asadmin
list -m "app-cluster-config.network.*" I get a bunch of attributes, but it
does not have averagetimeinqueue attribute. My question is why the monitoring
attributes are not consistent with the documentation in administration guide.
Does anybody have any suggestion on how to find the statistics that I am
looking for ? Thanks

--
[Message sent by forum member 'javakurious']
View Post: http://forums.java.net/node/890710