tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Amol Puglia <>
Subject Re: Tomcat Going down Frequently
Date Tue, 16 Nov 2010 14:59:35 GMT
Hello Andre,

We are proxying request from apache to tomcat using mod_proxy and mod_proxy_ajp

Following is the load balancer configuration in apache.

kindly let me know in case you need further details.

# Port 80
   Listen server_name:80
   <VirtualHost _default_:80>
      ServerName server_name

      Timeout 10800
      ProxyTimeout 10800
      ProxyRequests Off

       ProxyPass /eMatrix balancer://cluster stickysession=JSESSIONID|jsessionid nofailover=On
       #ProxyPass /eMatrix balancer://cluster stickysession=JSESSIONID nofailover=On

       ProxyPreserveHost On

       ProxyPass /eMatrix ajp://server_name:8009/eMatrix

       ProxyPass /eMatrix ajp://server_name:8010/eMatrix

      ProxyPass /eMatrix ajp://server_name:8011/eMatrix

      ProxyPass /eMatrix ajp://server_name:9009/eMatrix

      ProxyPass /eMatrix ajp://server_name:9010/eMatrix

      ProxyPass /eMatrix ajp://server_name:9011/eMatrix

       ProxyPassReverse /eMatrix ajp://server_name:8009/eMatrix

       ProxyPassReverse /eMatrix ajp://server_name:8010/eMatrix

       ProxyPassReverse /eMatrix ajp://server_name:8011/eMatrix

       ProxyPassReverse /eMatrix ajp://server_name:9009/eMatrix

       ProxyPassReverse /eMatrix ajp://server_name:9010/eMatrix

       ProxyPassReverse /eMatrix ajp://server_name:9011/eMatrix

       <Proxy balancer://cluster>
         BalancerMember ajp://server_name:8009/eMatrix route=marsprod_rmiserver_1
loadfactor=33 retry=60
         BalancerMember ajp://server_name:8010/eMatrix route=marsprod_rmiserver_2
loadfactor=33 retry=60
         BalancerMember ajp://server_name:8011/eMatrix route=marsprod_rmiserver_3
loadfactor=33 retry=60
         BalancerMember ajp://server_name:9009/eMatrix route=marsprod_rmiserver_4
loadfactor=33 retry=60
         BalancerMember ajp://server_name:9010/eMatrix route=marsprod_rmiserver_5
loadfactor=33 retry=60
         #load balancing performed based on number of user requests
         #ProxySet lbmethod=byrequests
         # Report server is for Report purpose only so balancing is required now.
         BalancerMember ajp://server_name:9011/eMatrix route=marsprod_rmiserver_6
loadfactor=33 retry=60
         ProxySet lbmethod=byrequests

       #Status page for balancer

       <Location /balancer>
       SetHandler balancer-manager
       Order Deny,Allow
       Deny from all
       Allow from all

      ProxyStatus On

      <Location /status>
      SetHandler server-status
      Order Deny,Allow
      Deny from all
      Allow from all

      ErrorLog /opt/web/apache/app/mxora/logs/error.log

# END port 80

--- On Tue, 11/16/10, André Warnier <> wrote:

From: André Warnier <>
Subject: Re: Tomcat Going down Frequently
To: "Tomcat Users List" <>
Date: Tuesday, November 16, 2010, 4:55 PM

Amol Puglia wrote:
> Hello Andre,
> Thanks for the updates. I am not using mod_jk , I am using proxy modules for redirecting
request from apache to tomcat.

Ok, sorry, I confused your post with another one.

But anyway, your configuration shows a whole lot of proxy modules, many of which do not seem
to have any relation with proxying calls to Tomcat. Such as these :

>> LoadModule proxy_connect_module modules/
>> LoadModule proxy_ftp_module modules/
>> LoadModule proxy_scgi_module modules/

The following /may/ have a relation with the proxying to Tomcat, but which one are you really
using ?

>> LoadModule proxy_http_module modules/
>> LoadModule proxy_ajp_module modules/

Usually, people use *either* mod_proxy_http *or* mod_proxy_ajp, so which one is being used
? Can you provide some information about the apache httpd configuration that shows what is
being proxied and how ?

> As you said that there is problem in application code, Is there anything we can point
out where exactly is the problem in the code or configuration?

I thought that Pid already pointed that out.

To unsubscribe, e-mail:
For additional commands, e-mail:

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message