Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Tomcat unexpectedly shutdown

 
AbhaySuresh Wakade
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic