httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Craig Main <>
Subject Re: [users@httpd] mod_proxy_ajp connections erratic
Date Thu, 23 Apr 2009 07:59:19 GMT
Thanks Andre, 

I am using apache to connect to 10 tomcat instances using the ajp
connector with load balancing and sticky sessions.

Load [root@lt-webportal-01:~]  # /opt/apache/bin/apachectl -V
Server version: Apache/2.2.9 (Unix)
Server built:   Sep  6 2008 15:33:44
Server's Module Magic Number: 20051115:15
Server loaded:  APR 1.3.0, APR-Util 1.3.0
Compiled using: APR 1.3.0, APR-Util 1.3.0
Architecture:   64-bit
Server MPM:     Prefork
  threaded:     no
    forked:     yes (variable process count)
Server compiled with....
 -D APACHE_MPM_DIR="server/mpm/prefork"
 -D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
 -D HTTPD_ROOT="/opt/http-2.2.9"
 -D SUEXEC_BIN="/opt/http-2.2.9/bin/suexec"
 -D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
 -D DEFAULT_LOCKFILE="logs/accept.lock"
 -D DEFAULT_ERRORLOG="logs/error_log"
 -D AP_TYPES_CONFIG_FILE="/opt/etc/httpd/mime.types"
 -D SERVER_CONFIG_FILE="/opt/etc/httpd/httpd.conf"

Tomcat: apache-tomcat-6.0.18

Platform: CentOS 5.2 64bit

The problem points to the ajp connection as we have done the following

1) Load tested http with our static content. - Good Response times
2) Load tested with the tomcat ajp load balancing to 10 tomcat
        * When we test the site's static content, the speed is fine
        * When we test the site's pages that go to tomcat, we see the
same page returning sometimes fast, and other times slow.
        * If we test connecting to the tomcat via it's http connector
from the command line, the speed is fine under load.
        * If we test connecting to the apache requesting the tomcat
pages, some of the requests are returned quickly, others are slow.
3) At first we thought it could be an specific instance of Tomcat, but
on investigation, one request to a particular instance was fast, and
others we slow to the same instance.

Please let me know if you need more information.


On Thu, 2009-04-23 at 08:44 +0200, André Warnier wrote:

> Craig Main wrote:
> > Hi All,
> > 
> > I am using apache to from 10 tomcat instances using the ajp connector
> > with load balancing and sticky sessions.
> Can you reread that phrase ?
> Which versions of Apache, Tomcat, the connector ?
> On which platform ?
> How do you determine that some connections are erratic/slow ?
> Not all of the above may be necessary in the end, but by providing this 
> upfront you save people from asking, thus increasing your own chances of 
> not being ignored and getting a helpful answer.
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:> for more info.
> To unsubscribe, e-mail:
>    "   from the digest:
> For additional commands, e-mail:

To read FirstRand Bank's Disclaimer for this email click on the following address or copy
into your Internet browser: 

If you are unable to access the Disclaimer, send a blank e-mail to and we will send you a copy of the Disclaimer.

View raw message