Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Tomcat Vs. Other web servers

 
N Rao
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can anybody please suggest me if Tomcat web server is enough for a web-app (JSP/Servlets) that has at least 300 concurrent users? If not, can you suggest me which of the commercially available java-enabled web servers (esp. with Servlet Containers but without EJB-support) can replace Tomcat and why?

I would appreciate, if you can let me know the comparison of standard web servers along with few parameters such as Performance, Concurrent Connections, Cost-effectiveness and so on.

Thanks in advance,
NR
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13061
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Tomcat has no problem serving a moderate number of users - even with rather complex page generation, my on-line mock exam servlets handle most requests in less than 10 milliseconds.
Bill
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64827
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moving to the Tomcat forum.
 
Joyce Lee
Ranch Hand
Posts: 1392
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Bill,

Originally posted by William Brogden:
Tomcat has no problem serving a moderate number of users - even with rather complex page generation, my on-line mock exam servlets handle most requests in less than 10 milliseconds.
Bill


I have the same concern as Rao. How many concurrent users are considered "moderate"?

Joyce
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13061
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"concurrent users" is really not the problem since servlets don't care how many people have a browser "pointed" at your server. The important figure is response speed under load of X requests handled per second.
I have done load testing using fake loads created with HttpClient and also monitored real application response time histograms for servlet generated mock exams that do a lot of object creation and manipulation. With fairly cheap hardware, more than 50 requests per second would see a slowdown.

Searching for benchmarks, I turned up this recent article. in which Tomcat seems to show up well.
Bill
 
Joyce Lee
Ranch Hand
Posts: 1392
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks a lot for the info, Bill.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic