Skip to main content

Monitoring httplistener starts giving negative values on coc

5 replies [Last post]
jean_bergstrom
Offline
Joined: 2008-12-15

I started monitoring the httplistener through the CLI, with the command ./asadmin monitor --type httplistener --filter http-listener-1 .

Initially this worked well. With the low traffic I was running, the coc (count open connections) returned values between 0 and 10. But after an hour or so, I started to get negative values, like -1, -2, -3. After I left the system running for more tha 10 hours I was getting values like -22 to -25, with the same traffic.

Is this a bug, or does anybody know how to interprete these negative values? Since the traffic has been the same all the time, It can't be as simple as ignoring the minus sign. I am pretty sure that I don't have 22 to 25 open connections with the traffic I am running.

I am using Sun GlassFish Communications Server 1.0 (build b06-p04) in a cluster with 3 instances running on Suse Enterprise Linux, kernel version 2.6.16.46-0.12-smp.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
km
Offline
Joined: 2005-10-28

Can you also confirm it with asadmin get --monitor?
You'll need to use the dotted names as described at:
http://blogs.sun.com/bloggerkedar/entry/dotted_names_of_glassfish_admini...

-Kedar

jean_bergstrom
Offline
Joined: 2008-12-15

Sorry, I don't know how to write the asadmin get --monitor command.

The nearest command that I have succeeded to work is the ./asadmin monitor --type httplistener --filter http-listener-1 deviap112, where deviap112 is the name of my cluster-instance. This command returns the negative value. The cluster has now been up for more than 70 hours, and the coc now shows -99!

/Jean

janey
Offline
Joined: 2005-05-30

Are you using Unix or Linux? Can you try 'asadmin get --monitor "*" | grep ' or grep for "http-listener-1"?

jean_bergstrom
Offline
Joined: 2008-12-15

I am using Suse Linux.

Both 'asadmin get --monitor "*" | grep ' or grep for "http-listener-1' returns:
Command get failed.

Jeanfrancois Arcand

Salut,

smell like a bug. Can you file an issue here:

https://glassfish.dev.java.net/servlets/ProjectIssues

Thanks!

- Jeanfrancois

glassfish@javadesktop.org wrote:
> I started monitoring the httplistener through the CLI, with the command ./asadmin monitor --type httplistener --filter http-listener-1 .
>
> Initially this worked well. With the low traffic I was running, the coc (count open connections) returned values between 0 and 10. But after an hour or so, I started to get negative values, like -1, -2, -3. After I left the system running for more tha 10 hours I was getting values like -22 to -25, with the same traffic.
>
> Is this a bug, or does anybody know how to interprete these negative values? Since the traffic has been the same all the time, It can't be as simple as ignoring the minus sign. I am pretty sure that I don't have 22 to 25 open connections with the traffic I am running.
>
> I am using Sun GlassFish Communications Server 1.0 (build b06-p04) in a cluster with 3 instances running on Suse Enterprise Linux, kernel version 2.6.16.46-0.12-smp.
> [Message sent by forum member 'jean_bergstrom' (jean_bergstrom)]
>
> http://forums.java.net/jive/thread.jspa?messageID=335461
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
> For additional commands, e-mail: users-help@glassfish.dev.java.net
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: users-help@glassfish.dev.java.net