users@glassfish.java.net

Re: How to monitor GF Http sessions using JMX

From: Tom Mueller <tom.mueller_at_oracle.com>
Date: Tue, 20 Sep 2011 09:32:25 -0500

To see the monitoring mbeans, monitoring must be enabled first. Use:

asadmin enable-monitoring --modules web-container,http-service

Then connect to the GlassFish server using jconsole. If running jconsole
on the same host as you server, enter "localhost:8686" for the remote
host name. After connecting, click on the MBeans tab. The GlassFish
mbeans are all under the "amx" node in the tree. To see sessions, look
for the session-mon bean. To see requests, look for the web-request-mon
bean.

Another way to monitor the server is to connect to is using jvisualvm.
This will show memory, threads, etc.

Tom