[Q] Tomcat sessions

D

Daniel Schneller

Hello!

My tomcat server's management application (4.1.27) shows an increasing
number of open sessions for a single webapp. Even when I shut down the
server and restart it, they don't go away.
Where does it store those? My server.xml does not have any persistence
settings enabled.

Thanks,
Daniel
 
J

John C. Bollinger

Daniel said:
My tomcat server's management application (4.1.27) shows an increasing
number of open sessions for a single webapp. Even when I shut down the
server and restart it, they don't go away.
Where does it store those? My server.xml does not have any persistence
settings enabled.

Answering a different question, I'm afraid, but you should ensure that
you specify a positive and not too excessive default session timeout.
You should also make sure that your webapp doesn't set any session's
timeout to an unreasonable value. This combination should solve your
root problem, and might even solve the immediate problem (getting rid of
existing sessions). A webapp or Tomcat restart might be required.


John Bollinger
(e-mail address removed)
 
W

Wendy S

Daniel Schneller said:
My tomcat server's management application (4.1.27) shows an increasing
number of open sessions for a single webapp. Even when I shut down the
server and restart it, they don't go away.
Where does it store those? My server.xml does not have any persistence
settings enabled.

Where they get stored depends on your configuration, but Tomcat does
serialize sessions across a restart by default.
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/manager.html
 
D

Daniel Schneller

Daniel said:
Thank you!

I will give it a try on monday.

Daniel
Thank for the answers, it worked. And I changed a misbehaving script,
that set the session timeout to a much too large value.

Daniel
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,968
Messages
2,570,152
Members
46,697
Latest member
AugustNabo

Latest Threads

Top