• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Is anything wrong with Tomcat?

 
Ranch Hand
Posts: 243
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I've heard before that Tomcat is slow and there are some other problems with it. Is this true?
 
Ranch Hand
Posts: 77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I don't hear anybody else to mention this.
 
Stanley Tan
Ranch Hand
Posts: 243
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Oh, cuz I heard before that Caucho's Resin is much better...
 
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi, there's nothing wrong with Tomcat. It's just that it is not that user friendly when displaying an exception or error in your servlet.
It's better to have two runners installed in your system. I use Tomcat and Resin. Between the two, Resin is faster and friendlier in telling where in your code causes the error.
 
Stanley Tan
Ranch Hand
Posts: 243
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Ted,
What do you mean by two runners on the system? Two serving the same pages?
 
Ranch Hand
Posts: 1874
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Stanley , I think Ted means two servlet / jsp engines. You install both Tomcat & Resin on your system & see the performance.
He is saying runner as there was servletrunner in previous version of java. Am I correct Ted ? Ted , hope I am correctly interpreting you.
It depends upong what kinds of Test you use to set the benchmarks & come to conclusion.
I think there are papers on web mentioning the various servlet engines & their performances .
I hope this helps.
Shailesh.
 
Ranch Hand
Posts: 388
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi,
some say that tomcat is not capable of handling 1000s of requests as needen in real life apps. i dont think so. it is still not the fastest but it's getting better day by day and has lots of capable engineer in it's back to work for free and open source...........

k
 
shailesh sonavadekar
Ranch Hand
Posts: 1874
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Karl , we can not compare servlet & ejb. They both have different applications & capabilites.
tomcat is not application server like bea Weblogic , websphere. There will be definitely cap on the no. of threads servlets can have.
Shailesh.
 
mister krabs
Posts: 13974
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Since Tomcat is a servlet/JSP server, I am moving this to the Apache/Tomcat forum.
------------------
Tom
Sun Certified Programmer for the Java� 2 Platform
Moderator of the forums:
J2EE and EJB
Other Java APIs
 
Thomas Paul
mister krabs
Posts: 13974
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
My opinion is that Tomcat runs fine. Just don't use it as a web server. Combined with Apache, it is more than fast enough for most web sites.
 
Ranch Hand
Posts: 3695
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
That "tomcat is slow" comment might have been true for the 3.x releases, but the 4.x release has been re-architected and re-written with speed as one of the major design goals.

It's also always been pretty friendly about it's error handling, so I'm not sure where that comes from. If you don't like the errorpage it gives you, you can always make your own.

 
Ranch Hand
Posts: 127
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have a suggestion. Can we come up with some basic jsp files/Servlets to benchmark the various servers?. We don't need a full scale benchmark, just a small set of basic tests. We can start with simple tests and build on it as we go on.
I have Tomcat 4.01 running under Windows 2000 with 256 MB RAM. I wouldnt mind running these tests. We could also agree on what tool to use like webbench or the microsoft tool or whatever.
I am sure the results will be useful to all of us.
Regards
Ravi
 
Ranch Hand
Posts: 287
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have been webmastering two sites for the past 6 months, one with Resin 2.0.1 and another with Tomcat 3.2.3 and I have to say that Resin just plain leaves Tomcat in the dust! Faster, friendlier, easier to config and so on and so on.....I dont know what improvements Tomcat 4.0 has but they have a LONG way to go to catch up with Resin!
 
Ranch Hand
Posts: 2379
MySQL Database Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Its true that Tomcat is not as fast as Apache or IIS or other web server for static html pages, but its very good for generating dynamic contents thru Servlet/JSP which is our area of interest. And resin is better in some sense that resin has support for server-side scripting with JSP using JavaScript also that tomcat does not have and resin automatically identifies & reloads the newer version of servlets. But tomcat is the most used servlet/jsp container and thus have a strong support in the community for any instant problem. The instant example may be a seperate forum in JavaRanch for Tomcat....

------------------
Muhammad Ashikuzzaman (Fahim)
Sun Certified Programmer for the Java� 2 Platform
--When you learn something, learn it by heart!
 
Mike Curwen
Ranch Hand
Posts: 3695
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Tomcat also supports dynamic reloading of servlets.

Check the docs, it's a setting in server.xml http://jakarta.apache.org/tomcat/tomcat-4.0-doc/config/context.html

Search the page for "reloadable"
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic