It's not a secret anymore!
The moose likes BEA/Weblogic and the fly likes Checking active sessions connected to weblogic Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Products » BEA/Weblogic
Reply Bookmark "Checking active sessions connected to weblogic" Watch "Checking active sessions connected to weblogic" New topic
Author

Checking active sessions connected to weblogic

Usha Seetharaman
Greenhorn

Joined: Apr 08, 2008
Posts: 15
How do we monitor the number of active sessions connected to weblogic? We need to monitor the active sessions and then shutdown the weblogic server.
Is it done through SNMP? I was thinking of using the below command but I get "unregistered" error.

java weblogic.Admin -adminurl <localhost:7001> -username <weblogic> -password <weblogic> GET -pretty -type serverRuntime -property serverRuntimeOpenSocketsCurrentCount

Is there some more configurations that needs to be done?
Is there any other approach to check the number of active sessions?

Any help would be greatly appreciated.
Renjan Thomas
Ranch Hand

Joined: Jan 09, 2009
Posts: 49

Hi,

You can monitor from weblogic console....In admin console if you got Servers-->managedserver-1(eg name)-->monitoring ..... you can see the below :-

Monitor all Active Queues
Monitor all Connections
Monitor all Active Sockets

Or else if you are looking for web sessions(you can view current sessions by going to the specific web module)..... go to deployment tab in weblogic console --->specific web module --> Monitoring --> Sessions.



Usha Seetharaman
Greenhorn

Joined: Apr 08, 2008
Posts: 15
Hi,

Thanks for the reply. I need to retrieve the values using a script and shutdown based on the number of active sessions open.

I found the solution to it. We can use WLST to achieve it.
Usha Seetharaman
Greenhorn

Joined: Apr 08, 2008
Posts: 15
Hi,

I have one more question to this . When I try monitoring the sessions from the console, the number of sessions increases each time I open the browser and access the application but when I close the browser, the number of sessions does not seem to be going down.

Is this a bug with Weblogic or am I missing something here. Please help
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Checking active sessions connected to weblogic
 
Similar Threads
Getting information from WebLogic
MXBean question in regards to tomcat
How to Invalidate Session
lambda probe shows unproportial number of sesssions
is there any way to monitor application server when it is working ?