[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 476
  • Last Modified:

Tomcat standalone vs Tomcat & Apache (virtual hosts)

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?
  • 2
1 Solution

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...

grexxAuthor Commented:
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.
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.



Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now