File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Tomcat and the fly likes Standalone Tomcat 4.0 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Standalone Tomcat 4.0" Watch "Standalone Tomcat 4.0" New topic

Standalone Tomcat 4.0

lover d'amour

Joined: Nov 15, 2001
Posts: 1
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 a lot!
Mike Curwen
Ranch Hand

Joined: Feb 20, 2001
Posts: 3695

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

Joined: Jun 23, 2001
Posts: 127
This topic has been discussed on length at the Tomcat user list at 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.
Hope this helps
patty cakes

Joined: Dec 03, 2001
Posts: 1
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
I agree. Here's the link:
subject: Standalone Tomcat 4.0
It's not a secret anymore!