users@glassfish.java.net

Re: how to get information of all active session on one application server

From: Jan Luehe <Jan.Luehe_at_Sun.COM>
Date: Tue, 02 Mar 2010 13:58:13 -0800

glassfish_at_javadesktop.org wrote:
> Hi ,all.
> I have set logged in user id in respective session,
> Now , i want to get all the users who are currently logged in on the system, how can i see that ?
>
> How to get information of all the active session on specific application server.
>

First, you need to enable monitoring in the web-container, as follows:

% asadmin set
server.monitoring-service.module-monitoring-levels.web-container=HIGH

Then issue this command (assuming that you want to find out about the
active sessions
of "<your_app>.war" deployed on virtual server "server"):

% asadmin get --monitor=true "server.applications.<your-app>.server.*" |
grep activesessionscurrent


Jan


> [Message sent by forum member 'syparth' (parth.v.thakkar_at_gmail.com)]
>
> http://forums.java.net/jive/thread.jspa?messageID=389699
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>