Hi,
We are using Tomcat 7.0.42.0, AJP/1.3 with Apache 2.2.21.
Connecting Apache to Tomcat as VirtualHost, The Problem is Apache and Tomcat losing its connection every 20-30 Minutes. Either We have to hit the WebServer URL multiple times or Reboot Apache & Tomcat to resolve the issue for short-time.
Also accessing WebServer URL is very very slow than tomcat URL (Mostly it takes 30-45seconds to load a Page, However same page is loading within 4-5 seconds through Tomcat URL).
I have added tomcat & Apache configurations below, Kindly please help me to resolve this issue.
Tomcat (Server.xml):
Apache (Workers.properties):
VirtualHost.conf:
Thanks
Jayaram
We are using Tomcat 7.0.42.0, AJP/1.3 with Apache 2.2.21.
Connecting Apache to Tomcat as VirtualHost, The Problem is Apache and Tomcat losing its connection every 20-30 Minutes. Either We have to hit the WebServer URL multiple times or Reboot Apache & Tomcat to resolve the issue for short-time.
Also accessing WebServer URL is very very slow than tomcat URL (Mostly it takes 30-45seconds to load a Page, However same page is loading within 4-5 seconds through Tomcat URL).
I have added tomcat & Apache configurations below, Kindly please help me to resolve this issue.
Tomcat (Server.xml):
Code:
<Connector port="9090" protocol="HTTP/1.1"
connectionTimeout="600000"
redirectPort="8443"
URIEncoding="UTF-8" emptySessionPath="true"/>
<Connector port="9009" protocol="AJP/1.3" redirectPort="8443" URIEncoding="UTF-8" connectionTimeout="600000"/>
Apache (Workers.properties):
Code:
worker.list=prod_live_svr
worker.prod_live_svr.type=ajp13
worker.prod_live_svr.host=10.100.0.31
worker.prod_live_svr.port=9009
worker.prod_live_svr.lbfactor=50
worker.prod_live_svr.socket_keepalive=1
worker.prod_live_svr.connection_pool_size=100
worker.prod_live_svr.connection_pool_minsize=50
worker.prod_live_svr.connection_pool_timeout=500
VirtualHost.conf:
Code:
<VirtualHost *:80>
ServerName 10.100.0.31
ErrorLog logs/live/http_error.log
RewriteLog logs/live/http_rewrite.log
RewriteEngine on
RewriteCond %{REMOTE_ADDR} !^10\.100\.0\.31$
RewriteRule ^/+$ /sites/ [R,L]
<IfModule rewrite_module>
Options +FollowSymlinks
RewriteEngine On
RewriteOptions Inherit
RewriteLog logs/rewrite.log
</IfModule>
JkMount /* prod_live_svr
JkOptions +ForwardURICompatUnparsed
</VirtualHost>
Thanks
Jayaram