• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Standalone Tomcat Vs Tomcat with IIS/Apache Web Server

 
Alec Lee
Ranch Hand
Posts: 569
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 65216
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Where did you get that notion? It's been outdated for many years.
 
Kees Jan Koster
JavaMonitor Support
Rancher
Posts: 251
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Alec Lee
Ranch Hand
Posts: 569
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 251
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear Alec,

Yes, I believe you can. You'd have to read up on Tomcat's clustering and session replication configuration.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic