• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Knute Snortum
  • Paul Clapham
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Frits Walraven
Bartenders:
  • Ganesh Patekar
  • Tim Holloway
  • salvin francis

Tomcat high number of http sessions  RSS feed

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Bartender
Posts: 4097
63
Chrome Fedora Hibernate
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
I am Arthur, King of the Britons. And this is a tiny ad:
how do I do my own kindle-like thing - without amazon
https://coderanch.com/t/711421/engineering/kindle-amazon
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!