Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Session Info From BEA Weblogic Console

Posted on 2009-04-08
8
Medium Priority
?
812 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
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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
 
LVL 10

Accepted Solution

by:
rajesh_bala earned 1000 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Most of the developers using Tomcat find it easy to configure the datasource in Server.xml and use the JNDI name in the code to get the connection.  So the default connection pool using DBCP (or any other framework) is made available and the life go…
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.…
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…
Loops Section Overview

772 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