Solved

Session Info From BEA Weblogic Console

Posted on 2009-04-08
8
790 Views
Last Modified: 2013-12-10
Session Info From Weblogic Console:-
we are using weblogic 8.1
We  can get the information about the sessions from the weblogic admin console but the information is lost when the browser is closed.

We want to capture this information. say for example :- How many users are there at a particular time?

How can we achieve this??  Any help will be appreciated.

0
Comment
Question by:ballioballi
  • 5
  • 3
8 Comments
 
LVL 10

Expert Comment

by:rajesh_bala
ID: 24107194
Can you be more specific on what you are trying to do.
0
 

Author Comment

by:ballioballi
ID: 24134564
1. I login to the weblogic console as system/password and see the total number of concurrent sessions.It says 20 sessions.(for example)

2. I want to capture this information every hour  with some script so that I need not to login again and again every hour.

3. The requirement is that the management wants the login information every hour. Right now I am just login every hour and capture this information and put it in an excel sheet but I could not able to take this information between 10PM -6AM.

This is what is my requirement. Please let me know if I explained it properly.


0
 

Author Comment

by:ballioballi
ID: 24144400
I mean the "total active sessions count in weblogic 8.1"

Hope, It make sense now.
0
 
LVL 10

Expert Comment

by:rajesh_bala
ID: 24146138
Yeah, I do understand it clearly now.

Can you check the following link. you might have to modify a little bit and replace with your values to get this

http://psadmin.blogspot.com/2008/02/weblogic-monitoring-scripts.html
0
IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 
LVL 10

Accepted Solution

by:
rajesh_bala earned 500 total points
ID: 24146170
You can also try the following weblogic.Admin to ensure you are getting right value.

1. open a command prompt.
2. Navigate to \bin folder. run setDomainEnv.sh/setDomainEnv.cmd. This will set appropriate classpaths etc.
3. Run the following command. Please change it according to your webapps and server names.

java weblogic.Admin -username weblogic -password weblogic GET -pretty -mbean "examples:ApplicationRuntime=examplesServer_examplesWebApp,Location=examplesServer,Name=examplesServer_examplesServer_examplesWebApp_examplesWebApp,ServerRuntime=examplesServer,Type=WebAppComponentRuntime" -property OpenSessionsCurrentCount

This would print the number of open sessions in the system. ENSURE YOU CHANGE THE SERVERNAME AND WEBAPP NAME.
0
 

Author Comment

by:ballioballi
ID: 24413970
I am not able to find setDomainEnv.sh.

I have ./setEnv.sh only.

Thanks,
0
 

Author Comment

by:ballioballi
ID: 24415527
java weblogic.Admin -username weblogic -password weblogic GET -pretty -mbean "examples:ApplicationRuntime=examplesServer_examplesWebApp,Location=examplesServer,Name=examplesServer_examplesServer_examplesWebApp_examplesWebApp,ServerRuntime=examplesServer,Type=WebAppComponentRuntime" -property OpenSessionsCurrentCount


You just said to put 2 variables but I am confused with so many variables:-

I am rewriting it :-

change username ----system          (I got this)
change password-----password       (I got this)


what is ---- 1.  ApplicationRuntime=examplesServer_examplesWebApp
                   2.  Location=examplesServer
                   3   Name=examplesServer_examplesServer_examplesWebApp_examplesWebApp
                    4. ServerRuntime=examplesServer
                    5. Type=WebAppComponentRuntime
Please clarify.
   
0
 

Author Closing Comment

by:ballioballi
ID: 31568365
NOT WORKED
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Verbose logging is used to diagnose garbage collector problems. By default, -verbose:gc output is written to either native_stderr.log or native_stdout.log.   It is also possible to redirect the logs to a user-specified file. This article will de…
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.…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

708 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

17 Experts available now in Live!

Get 1:1 Help Now