logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: Apache Disconnecting from Tomcat AppServer
Author
jponnusamy



Joined: 30 May 2016
Posts: 12
Location: Qatar, Doha

PostPosted: Sun 31 Jul '16 8:39    Post subject: Apache Disconnecting from Tomcat AppServer Reply with quote

Dear All,
In our Environment we are using VirtualHost to connect Tomcat Application Server via AJP/1.3. The Problem is if no one accessing the site for sometime (eg. 600000ms) then Apache is lost its connection with Tomcat.
Then if we try to hit the server its keep loading.

Also accessing the site through WebServer is too slow then Tomcat URL.

I posted my configuration here. Dear Experts kindly please check and let me know options to resolve this issue.

httpd.conf:
Code:

Header set Cache-Control "max-age=290304000, public"

Timeout 5400
ProxyTimeout 5400
ProxyBadHeader Ignore
KeepAliveTimeout 2
MaxRequestsPerChild   0
StartServers          5
MinSpareServers       5
MaxSpareServers      10

<IfModule ssl_module>
SSLRandomSeed startup builtin
SSLRandomSeed connect builtin
</IfModule>

<ifModule mod_headers.c>
   Header set Connection keep-alive
</ifModule>

NameVirtualHost *:80
Include conf/qu/live.conf

LoadModule headers_module     modules/mod_headers.so
LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_http_module modules/mod_proxy_http.so


prod.conf
Code:

<VirtualHost *:80>
   ServerName 10.100.0.0

    ErrorLog logs/live/http_error.log
    RewriteLog logs/live/http_rewrite.log
    CustomLog "|/opt/apps/apache/bin/rotatelogs -f  /opt/apps/apache/logs/live/http_access.log.%Y.%m.%d 86400 +60" imi

    RewriteEngine on
      RewriteCond %{REMOTE_ADDR} !^100\.100\.0\.0$
      DocumentRoot /opt/apps/shared/cds/docroot
      RewriteRule ^/+$ /sites/  [R,L]

    <IfModule rewrite_module>
      Options +FollowSymlinks
      RewriteEngine    On
      RewriteOptions Inherit
      #RewriteLogLevel 9
      RewriteLog logs/rewrite.log
   </IfModule>
   JkMount   /*        prod_live_svr
   JkOptions +ForwardURICompatUnparsed
</VirtualHost>


workers.properties
Code:

worker.list=prod_live_svr

worker.prod_live_svr.type=ajp13
worker.prod_live_svr.host=10.100.116.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


Tomcat Configuration <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"/>


Thanks
Jayaram
Back to top


Reply to topic   Topic: Apache Disconnecting from Tomcat AppServer View previous topic :: View next topic
Post new topic   Forum Index -> Apache