users@glassfish.java.net

Re: How to monitor GF Http sessions using JMX

From: <forums_at_java.net>
Date: Tue, 20 Sep 2011 09:26:28 -0500 (CDT)

  1) The open source edition does have monitoring available in the Admin
     Console.
     Enable web container monitoring:
     Configurations > xxx-config > Monitoring > set the Monitoring Level to
     HIGH for Web Container.
     server (Admin Server) > Monitor
     Clusters > cluster_name > Instances > select instance in the table >
     Monitoring
     You will see monitoring for session and request statistics.
  2) For the mbean names, run jconsole.   Connect remotely using the jmx
     connector port.  By default it is #8686.  Then go to MBeans > open amx
     folder > session-mon will show the session statistics.  For example, the
     name will be like:
     amx:pp=/mon/server-mon[server],type=session-mon,name=hello/server. 
     Under web-request-mon folder, you will see the request statistics.  The
     name will be like
     amx:pp=/mon/server-mon[server],type=session-mon,name=hello/server.
  3) You may also use REST.  You can point the browser at
     http://localhost:4848/monitoring/domain and click thru to the stats you
     want, like

http://localhost:4848/monitoring/domain/server/applications/hello/server.  
     There more info here
     http://blogs.steeplesoft.com/2011/02/restful-glassfish-monitoring/.

 


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