File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Tomcat and the fly likes Tomcat high number of http sessions Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Tomcat high number of http sessions" Watch "Tomcat high number of http sessions" New topic
Author

Tomcat high number of http sessions

g droege
Greenhorn

Joined: Nov 02, 2011
Posts: 1
I am new to Tomcat and have a question. I have a client application that connects to some server code running under tomcat (Solaris) that handles queries to a database through jdbc. I'm noticing a large number of http sessions on the tomcat web application manager despite only one current user using the client application for one query. The web.xml is set to expire sessions after one hour. It just doesnt make sense that a single request to the servlet for database results would result in 8 or 12 sessions, that expire an hour later. I've not been able to find a simple basic tutorial for someone not familar with tomcat in order to determine if this is an issue or not. Any advice would be appreciated.
Vijitha Kumara
Bartender

Joined: Mar 24, 2008
Posts: 3825

Welcome to the CodeRanch!
It just doesnt make sense that a single request to the servlet for database results would result in 8 or 12 sessions..

What is the logic in your code to handle sessions? Do you have any? Unless you have JSPs which allow sessions to be created servlets may not create sessions for you automatically.


SCJP 5 | SCWCD 5
[How to ask questions] [Twitter]
 
 
subject: Tomcat high number of http sessions