Tomcat standalone vs Tomcat & Apache (virtual hosts)

Posted on 2004-11-06
Last Modified: 2010-08-05
At the moment we have Tomcat 4.1.24 running as a standalone webserver (on W2K). The application we are running is 99% dynamic. We do need virtual hosts, or the equivalent in Tomcat. I was wondering what the best option would be. I believe there are two options. First we leave the situation as it is, and use the virtual hosts equivalent for Tomcat. The second is to install Apache and setup virtual hosts there.

I wonder what the best is, considering we barely serve static pages. What's the easiest to setup? If we install Apache, does that mean we have to run one instance of Tomcat for each virtual host? (I've heard that this is possible, but never have used it. Maybe I misunderstood.) What does this mean for server load?
Question by:grexx
    LVL 2

    Expert Comment


    I have found in the past that if you are only using dynamic content, it is easier to maintain just one application. The extra ram Apache and the connector takes in my oppinion is not worth it.

    We did not notice any performance changes at all with the loss of Apache.

    Hope the helps ... in the long run, way less to manage, and the new Coyotee http connector works way better then Tomcat's old one...

    LVL 1

    Author Comment

    Well at the moment we have only Tomcat installed. I thought it would be easier to have Apache next to it for handling virtual hosts. What you say is that you don't notice a performance change when using apache or not. So in terms of performance it's not really an issue as I understand you correctly.

    This leaves the question open what's the easiest to configure. I'm beginning to understand Apache better, and I believe it is easier to configure than Tomcat, but I would like some feedback on this.
    LVL 2

    Accepted Solution

    I think in the long run, it just comes down to what you prefer ... I find Apache a lot more intuitive, and plus, if you start hosting non java hosts, it will take less resources...

    I was reading that Tomcat had issues with many vhosts ...  but that is probably fixed in the latest version....

    Do what is the easiest for you, and your team.



    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    What Security Threats Are You Missing?

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    In our day to day coding, how many times have we come across a necessity to check whether a URL is a broken link or not? For those of you that answered countless and are using ColdFusion like myself, then this article is for you.  It will show yo…
    Article by: kevp75
    Hey folks, 'bout time for me to come around with a little tip. Thanks to IIS 7.5 Extensions and Microsoft (well... really Windows 8, and IIS 8 I guess...), we can now prime our Application Pools, when IIS starts. Now, though it would be nice t…
    Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
    Here's a very brief overview of the methods PRTG Network Monitor ( offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    14 Experts available now in Live!

    Get 1:1 Help Now