This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Tomcat and the fly likes Tomcat unexpectedly shutdown Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Tomcat unexpectedly shutdown" Watch "Tomcat unexpectedly shutdown" New topic
Author

Tomcat unexpectedly shutdown

AbhaySuresh Wakade
Greenhorn

Joined: Apr 03, 2006
Posts: 2
Dear all,

I am stuck in a very critical situation. I would really appreciate your help.

I have a JSP application running on Tomcat 5.5.9 with MS SQL Server as a DB server. Tomcat unexpectedly shutdown when number of users increses beyond 50.

Pls. tell me how should i solve this problem. Will the problem will get solved if the no. of users are increased in server.xml or increase the seesion timeout value in server.xml


With regards,
Abhay.S.W
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

Tomcat doesn't limit the number of users.
There is a max threads but with a default value of 75, you should be able to handle hundreds or thousands of users at a time.

It is more likely that your JDBC driver or the database itself is limiting connections.

Are you using connection pooling?

Are you explicitly closing your database connections immediately after using them? If not, there is a good chance that they're not getting closed and your database is refusing connections after the 50th hit.


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Tomcat unexpectedly shutdown
 
Similar Threads
SAXParseException: Content is not allowed in prolog.
shutdown tomcat on port 8005
Shutdown command with Apache Tomcat and Eclipse 3.4.2
Retrieving all active sessions at shutdown.
Waiting for Tomcat to shut down