0

We're running an older J2EE application on WebSphere 6.1 Express. There are periods where users are complaining of slow response times. I suspect this is because the server has a lot of active sessions at the time. I'd like to be able to justify getting a bigger server with more RAM to handle the load. When I go into the Tivoli Performance Viewer and enable Servlet Session Manager, which will show me the Live Count of all active sessions. What I'd like to do is write this number out to the SystemOut.log (or another log file via Log4J) every five minutes. How would I do this?

Michael Sobczak
  • 1,045
  • 1
  • 24
  • 45

1 Answers1

1

Unfortunately you cannot write it to the SystemOut.log by default. In general you have the following options:

Gas
  • 17,601
  • 4
  • 46
  • 93
  • The "Using the JMX interface to develop your own monitoring application" and this article "Websphere in memory session count" [link](http://websphereadmin-janglestrategies.blogspot.com/2010/02/websphere-in-memory-session-count.html) provided the necessary clues. I'll post my Java-based solution here once its finished. – Michael Sobczak Aug 13 '14 at 21:30
  • @MichaelSobczak If you want to create custom solution the best is to implement it as Custom service, and configure on server. In this way you don't need to deploy and run any additional application. Check here how to create and configure custom service - http://www-01.ibm.com/support/knowledgecenter/SS7JFU_8.0.0/com.ibm.websphere.express.doc/info/exp/ae/trun_customservice.html?lang=en – Gas Aug 13 '14 at 21:38