aspose file tools*
The moose likes Tomcat and the fly likes Standalone Tomcat Vs Tomcat with IIS/Apache Web Server Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Standalone Tomcat Vs Tomcat with IIS/Apache Web Server" Watch "Standalone Tomcat Vs Tomcat with IIS/Apache Web Server" New topic
Author

Standalone Tomcat Vs Tomcat with IIS/Apache Web Server

Alec Lee
Ranch Hand

Joined: Jan 28, 2004
Posts: 569
In production environment, should we always use IIS/Apache before Tomcat instead of just a standalone Tomcat serving everything? I have the impression that Tomcat alone isn't suitable for production environment.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61766
    
  67

Where did you get that notion? It's been outdated for many years.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Kees Jan Koster
JavaMonitor Support
Rancher

Joined: Mar 31, 2009
Posts: 251
    
    5
Dear Alec,

Yahoo did some testing on this. There is some discussion about this subject in this thread on Java-monitor's forum. Scroll down to find sippykup's contributions.

I have seen many installations with and without Apache in front of Tomcat. I would say that for most sites Tomcat is more than capable to handle production operations. There is some stuff that Apache can do that Tomcat is not as good at. I see Apache used for stuff like aggregating 20-odd Tomcat servers into a single outside view, or SSL for large virtual host environments. If it is purely for high-load sites or for relatively plain sites, I would opt to run Tomcat stand-alone. Less overhead, both run-time and administratively.


Java-monitor, JVM monitoring made easy <- right here on Java Ranch
Alec Lee
Ranch Hand

Joined: Jan 28, 2004
Posts: 569
If my main focus is just failover rather than horizontal scaling. That is, my appli is used by internal users with only moderate amount of requests, and I want to make sure crashing of one server doesn't cause the whole appli unavailable. Can I achieve this with standalone tomcat boxes only without an Apache frontend to route the traffic?
Kees Jan Koster
JavaMonitor Support
Rancher

Joined: Mar 31, 2009
Posts: 251
    
    5
Dear Alec,

Yes, I believe you can. You'd have to read up on Tomcat's clustering and session replication configuration.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Standalone Tomcat Vs Tomcat with IIS/Apache Web Server