Solved

Session monitoring in WebLogic

Posted on 2009-07-12
4
1,824 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

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Suggested Solutions

This exercise is about for the following scenario: Dmgr and One node with 2 application server. Each application server contains it owns application. Application server name as follows server1 contains app1 server2 contains app1 Prereq…
Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
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.

707 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