File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Tomcat unexpectedly shutdown" Watch "Tomcat unexpectedly shutdown" New topic

Tomcat unexpectedly shutdown

AbhaySuresh Wakade

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,
Ben Souther

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
I agree. Here's the link:
subject: Tomcat unexpectedly shutdown
It's not a secret anymore!