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

Standalone Tomcat 4.0

 
lover d'amour
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello all,
I want to know if I should use Apache connectors or Tomcat 4.0 as a standalone web server for my website. What are the advantages of installing Apache Web server?
Thanks
 
Mike Curwen
Ranch Hand
Posts: 3695
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The advantage is that Tomcat does not have to spend time serving static resources, that are more efficiently served by a web server.

Not only does it split the load between two processes, but you are using the appropriate software for each task. Apache serves static content, and Tomcat provides the dynamic.

One thing to check is that Tomcat 4.0 and Apache connectors may not be quite ready for 'prime time'.
 
Ravi Veera
Ranch Hand
Posts: 127
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This topic has been discussed on length at the Tomcat user list at apache.org and on the servlet discussion board.
Wether you use Tomcat as a standalone webserver or behind apache depends on several factors.
1. Where is your app being deployed? On the internet or intranet?
If it's on the internet you may be better of running the app behind Apache as it is more thoroughly tested and stable. Apache can definitely handle a lot more hits than Tomcat.
2. Is your site a mixture of JSP's/Perl/Plain HTML/PHP/etc ? Running Apache as a webserver is an automatic choice here because it is built to handle various types of content (Tomcat can handle these too but I would rather use Apache).
3. Is your site solely a collection of JSP/Servlet apps running on the intranet? Here you may be better of running Tomcat as a standalone webserver. This is what I am doing. My site is not a heavy volume site and is going to be used exclusively on the intranet.
4. If you are in the development environment developing JSP's and servlets,it is easier to have just Tomcat running rather than apache+tomcat.
Here's a link to one of the forums.
1. http://www.javaranch.com/ubb/Forum7/HTML/006752.html
Hope this helps
Regards
Ravi
 
patty cakes
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks a lot for the info guys.
Since I don't use other languages than jsp and don't have many html pages on the site, I'll try Tomcat as a Standalone.
Keep you posted
Pat
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic