开发者

JBoss view active user sessions

We have a JBoss server with a single J2EE on it. I wish to find out who are the current active users using that application. Does JBoss give me any utilities that lets me view those existing sessions? (NOT the count, but who all are logged in)开发者_Go百科 The question is kinda lame, but so is my JBoss knowledge :)

I checked the JBoss community, but it only had a couple of relative unanswered questions there. The information i'm looking for would help me in maintenance cycles. I do not wish to reboot the system when users are still using it. We also need to keep a track of any illegal activities on our server. Hence the requirement.

Would appreciate any pointers :)

Regards, Abhi


http://docs.jboss.org/jbossas/docs/Server_Configuration_Guide/4/html/clustering-http-monitor.html

  1. Enter on your JMX console : ex: ip:port/jmx-console/
  2. Look for "jboss.cache:service=TomcatClusteringCache" on objectName Filter and Apply.
  3. Enter on MBean jboss.cache:service=TomcatClusteringCache (the first option, ignore interceptors)
  4. Look for "printDetails" and invoke it. It shows all opened sessions and attributes.


In CLI:

First of all connect to the server using jboss-cli.sh (it is inside /bin ):

jboss-cli.sh --connect --controller=<ip-server>:9990

For standalone mode:

[standalone@ip-address:9999 /] /deployment=${deployment-name}/subsystem=undertow:read-attribute(name=active-sessions)

For domain mode:

[domain@ip-address:9999 /] /host=${host-name}/server=${server-name}/deployment=${deployment-name}/subsystem=undertow:read-attribute(name=active-sessions)

In Web Management Console:

Access web console using "http://ip-address:9990/"

Select "Deployments" from the left bottom corner.

According to the mode you use:

For standalone mode:

From left panel, select:
"deployment"-"${deploymentname}"-"subsystem"-"undertow",

Click on "Data" tab on the main page

For domain mode:

From left panel, select:
"Server Groups"-"${server-group-name}"-"deployment"-"${deployment-name}"-"view"-"subsystem"-"undertow" Click on "Data" tab on the main page


go to /jmx-console/ search for type=Manager or service=ClusterManager click on the right context. property "activeSessions" gives the number of sessions


go to JMX console by http://localhost:8080/jmx-console. Search for your MBEAN on that.. click on that.. there you can find loads of information.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜