Monday, April 17, 2006

mod_jk versus mod_proxy

Before we proceed, please have a look at mod_cluster.

Now to mod_jk versus mod_proxy comparison:

A good blog post by Mladen Turk "Comparing mod_proxy and mod_jk".

Interesting reply from Bill Barker, one of the developers on mod_jk.
mod_jk versus mod_proxy under load ?

The moral of the links above is that due to persistent connections, mod_jk has better performance than mod_proxy. But the flip side is that mod_jk has extra configuration to set up, in comparison to mod_proxy.

From official documentation from Tomcat at: Tomcat Connectors, you can get the following snippet:

- "mod_jk" is great and should be used for production. It is getting fixes as needed (which is now rare).
- "mod_proxy". A cheap way to proxy without the hassles of configuring JK. This solution lacks sticky session load balancing. If you don't need some of the features of jk, jk2 - this is a very simple alternative.
- "mod_proxy_ajp". With apache 2.2, mod_proxy was rewritten to support load balancing as well as a new transport called mod_proxy_ajp. This module is distributed with the Apache http server, not the Tomcat server.


Interesting note from a sys admin (from his Feb 15, 2006 post):

Goodbye mod_jk hello mod_proxy


Another good article on the usage of Apache as a Forward or a reverse proxy using mod_proxy:
Forward and Reverse Proxies

Here is a blog on load balancing with mod_proxy:
LoadBalancingWithModProxy


....

Monday, April 10, 2006

Checking out Tomcat Source Code for TC 5.5.16

I am not sure if the only way to get the source code for the various modules needed to build Tomcat, on a branch is the following:

build module:
svn co http://svn.apache.org/repos/asf/tomcat/build/tags/tc5.5.x/TOMCAT_5_5_16/ build

container module:
svn co http://svn.apache.org/repos/asf/tomcat/container/tags/tc5.5.x/TOMCAT_5_5_16/
container

connectors module:
svn co http://svn.apache.org/repos/asf/tomcat/connectors/tags/tc5.5.x/TOMCAT_5_5_16/
connectors

jasper module:
svn co http://svn.apache.org/repos/asf/tomcat/jasper/tags/tc5.5.x/TOMCAT_5_5_16/
jasper

servletapi module:
svn co http://svn.apache.org/repos/asf/tomcat/servletapi/servlet2.4-jsp2.0-tc5.x
servletapi


I then have a build.properties file in the build directory, with the base path modified as:
base.path=C:/cygwin/home/asaldhana/tomcat55

Step 1:
Go to the build directory and do "ant download". This will download the components that are dependencies.