users@glassfish.java.net

Re: Writing probes for Glassfish container events

From: <forums_at_java.net>
Date: Thu, 16 Feb 2012 02:13:32 -0600 (CST)

The value could be got via GlassFish REST Interface for Management and
Monitorin:

1. Turn on Monitoring.Http=HIGH under Configurations -> Server Config ->
Monitoring through Admin GUI.

2. Restart GlassFish.

3. Open browser and input url
"http://yourserver:4848/monitoring/domain/server/network/http-listener-1/connection-queue".
Then you will see someting like below. The value of countqueued may be the
thing you are interested in.

    countopenconnections
        count : 0
        lastsampletime : 1329379340596
        description : The+number+of+open%2Factive+connections
        unit : count
        name : CountOpenConnections
        starttime : 1329379340596
    countoverflows
        count : 0
        lastsampletime : 1329379336199
        description :
Number+of+times+the+queue+has+been+too+full+to+accommodate+a+connection
        unit : count
        name : CountOverflows
        starttime : 1329379265986
    countqueued
        count : 0
        lastsampletime : 1329379336199
        description : Number+of+connections+currently+in+the+queue
        unit : count
        name : CountQueued
        starttime : 1329379265986
    countqueued15minutesaverage
        count : 0
        lastsampletime : 1329379340601
        description :
Average+number+of+connections+queued+in+the+last+15+minutes
        unit : count
        name : CountQueued15MinutesAverage
        starttime : 1329379340601
    countqueued1minuteaverage
        count : 0
        lastsampletime : 1329379340601
        description :
Average+number+of+connections+queued+in+the+last+1+minute
        unit : count
        name : CountQueued1MinuteAverage
        starttime : 1329379340601
    countqueued5minutesaverage
        count : 0
        lastsampletime : 1329379340601
        description :
Average+number+of+connections+queued+in+the+last+5+minutes
        unit : count
        name : CountQueued5MinutesAverage
        starttime : 1329379340601
    counttotalconnections
        count : 0
        lastsampletime : 1329379336199
        description :
Total+number+of+connections+that+have+been+accepted
        unit : count
        name : CountTotalConnections
        starttime : 1329379265986
    counttotalqueued
        count : 0
        lastsampletime : 1329379336199
        description :
Total+number+of+connections+that+have+been+queued
        unit : count
        name : CountTotalQueued
        starttime : 1329379265986
    maxqueued
        count : 4096
        lastsampletime : 1329379336199
        description : Maximum+size+of+the+connection+queue
        unit : count
        name : MaxQueued
        starttime : 1329379265986
    peakqueued
        count : 0
        lastsampletime : 1329379336199
        description :
Largest+number+of+connections+that+were+in+the+queue+simultaneously
        unit : count
        name : PeakQueued
        starttime : 1329379265986
    tickstotalqueued
        count : 0
        lastsampletime : 1329379336199
        description :
%28Unsupported%29+Total+number+of+ticks+that+connections+have+spent+in+the+queue
        unit : count
        name : TicksTotalQueued
        starttime : 1329379265986

 


--
[Message sent by forum member 'liang.x.zhao']
View Post: http://forums.java.net/node/883568