Solved

Session monitoring in WebLogic

Posted on 2009-07-12
4
1,832 Views
Last Modified: 2013-12-10
What is the difference between Sessions, Sessions High and Total Sessions? These are the column headings in WLS 9 and 10 versions. The definition of these as given in edocs is simple however when I load tested a web app using session replication in a cluster of few managed servers the session data that I observed was quite ambiguous when compared to the definitions:
Sessions: Specifies the number of sessions that are currently active in the Application.
Sessions High: Refers to the highest number of concurrent sessions that were open for an Application.
Total Sessions: Refers to the total number of sessions that were opened since deployment of an Application.

Session data:
Server: Sessions/ Sessions High/Total Sessions
MS1: 590/550/548
MS2: 598/558/555
0
Comment
Question by:pirabid
  • 2
4 Comments
 
LVL 10

Accepted Solution

by:
rajesh_bala earned 500 total points
ID: 24838269
This is the understanding. Do let me know if it is not clear.

Every session will have a starting time and a timeout value. It is not necessary that if we have 500 sessions, all 500 users are hitting the application.

Ex: User might have a shopping cart and server creates a session for him. It is not necessary that the user is continuously accessing the system. He might go for a break and come back, add some more to his cart. But till then the session is kept alive based on the timeout setting.

Now, that being said...

Sessions: It specifies the number of LIVE sessions present in application server at that point of time. It does not give any information about concurrent users.

Sessions High: This is used for measuring the blips in the server. Assume you have high traffic for 2 hours in a day. Only during that time your sessions might reach 1000. Rest of the time, it might be 80 (I am just giving an example here). So sessions high is used for measuring the peak load on that server.

Total Sessions: This is a cumulative figure which gives the total number of sessions created after starting the application. You can relate it to site statistic details (unique user statistics given in most site using javascript or so).
0
 
LVL 10

Assisted Solution

by:rajesh_bala
rajesh_bala earned 500 total points
ID: 24838283
But in your case, the counters are misleading. Ideally I would have expected > 590 for "TOTAL-SESSIONS" in MS1.

However, for monitoring purpose I would bother about the following.

Sessions - Gives an understanding of memory requirements for JVM. If there are 10000 sessions and each of them occupy 5kb data, then you might end up requiring lots of memory. So this figure gives an understanding of the memory requirements and to understand if you really need to tune session-timeout.

Session High - Ideally these blips can be monitored in webserver logs itself. So I would tend to rely on them better.
0
 

Author Comment

by:pirabid
ID: 24870672
This  is my latest observation and it may have something to do with the numbers that show up in the monitoring tab for sessions:

I was just browsing through the filesystem and saw that there was some session data in the persistent store directory that has not been deleted yet.  Maybe when servers startup next time they will take into account these sessions that have not been deleted somehow in past.

The servers are not running as of now. So, I'll be carrying out a test on dev machine  this week to check whether these sessions account for ambiguous numbers.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I had a project requirement for a displaying a user workbench .This workbench would consist multiple data grids .In each grid the user will be able to see a large number of data. These data grids should allow the user to 1. Sort 2. Export the …
Upgrading Tomcat – There are a couple of methods to upgrade Tomcat is to use The Apache Installer is to download and unzip and run the services.bat remove|install Tomcat6 Because of the App that we are working with, we can only use Tomcat 6.…
The viewer will learn how to implement Singleton Design Pattern in Java.
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.

910 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now