Skip to main content

monitoring in glassfish 3.1.1

1 reply [Last post]
javakurious
Offline
Joined: 2012-06-18

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

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
jc129909
Offline
Joined: 2005-03-30

I believe the instance-name.thread-pools.thread-pool.* is for orb thread pools.

The http thread pool data should be under instance-name.network.*.
Use 'asadmin get -m instance-name.network.* to get all the monitoring data.

The statistics you are looking for may be under
instance-name.network.http-listener.connection-queue.*
and/or
instance-name.network.http-listener.thread-pool.*