main website home
  • About this blog

    This blog features updates, opinions, and technical notes from Caucho engineers about Caucho products, the enterprise Java industry, and PHP. Caucho Technology is the creator of the Resin Application Server and the Quercus PHP in Java engine. A leader in Java performance since 1998, Caucho is a Sun JavaEE licensee with over 9000 customers worldwide.
  • Tags

    ajaxworld bam candi cdi cloud cluster comet configuration deploy devoxx eclipse ejb embedded flash flex google app engine hessian hmtp ioc java ee 6 javaone javazone jms messaging newsletter nyjug osgi php pomegranate quercus resin resin 4.0 REST servlet sfjug silicon valley code camp spring testing training tssjs watchdog webbeans web profile websockets wordpress
  • Meta

    • Register
    • Log in
    • Entries RSS
    • Comments RSS
    • WordPress.org
« Coming back and Coming soon
New Hessian Flash/Flex snapshot »

Using Apache with Resin

I’ve been working on the section in the training course dealing with mod_caucho, Resin’s Apache plugin. This is one of the last things I’m working on and for good reason. Dealing with Apache is a pain and usually unnecessary. If you can avoid using Apache with Resin, we recommend it. There are lots of good reasons not to use Apache:

  • Apache isn’t any faster than Resin for serving static files (unless they’re really big)
  • Resin has had rewrite-rules which obviate the need for Apache as a rewrite engine
  • Resin Professional has a much better load balancer which takes into account number of connections, CPU load, and other factors in assigning new connections

I think a lot people who upgrade from Tomcat to Resin are used to using Apache with their Java Servlet engine because Tomcat had a reputation of operating better with Apache. I’m not sure if that’s even true in Tomcat’s case, but it’s certainly not in Resin’s.

So should you ever use Apache? Maybe. If you’ve got a highly heterogeneous site with lots of different applications using a variety of modules like mod_perl or mod_python, you might be better off with Apache on the front end.

Finally, one quick note: We just had a support request come in about using Apache 1.3. We have deprecated support for Apache 1.3 and I just verified that Resin 3.1.7a doesn’t work with it. Resin 3.2.0 does, but don’t rely on this in the future. Either upgrade to Apache 2 or get off of Apache entirely. You’ll thank yourself later. :-)

Tags: apache, resin, tomcat

This entry was posted on Thursday, October 9th, 2008 at 2:06 pm and is filed under Engineering. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

3 Responses to “Using Apache with Resin”

  1. David Says:
    October 13th, 2008 at 12:05 am

    Lots of true facts :)

    But for me, the best part of using Resin is that it’s very low-end server Friendly
    I ditched Apache a while back for many reasons, one being it uses so much CPU/RAM…

    Rock on Caucho! :D

  2. stbu Says:
    October 16th, 2008 at 3:11 pm

    How large files must be to gain advantages of Apache compared to Resin?

  3. ferg Says:
    October 24th, 2008 at 10:24 am

    The file size where they switch is about 256k/1m and the Apache gain is really minimal. In practice, they’re essentially identical, but the benchmarks do show a slight edge.

Leave a Reply

You must be logged in to post a comment.


Caucho Technology is proudly powered by WordPress and Quercus®
Entries (RSS) and Comments (RSS).

  • HOME |
  • CONTACT US |
  • DOCUMENTATION |
  • BLOG |
  • WIKI 4 |
  • WIKI 3 |
  • Resin: Java Application Server
Copyright (c) 1998-2012 Caucho Technology, Inc. All rights reserved.
caucho® , resin® and quercus® are registered trademarks of Caucho Technology, Inc.
resin® is a cloud optimized, java® application server that supports the java ee webprofile ®