Apache HTTPD version 2.4.10
Tomcat version apache-tomcat-7.0.61
Ubuntu 12.04.5
16G RAM
Dual Core processor 64-bit


Lately I am noticing that the request parameters are present when the
request hits Apache, but are dropped when request reaches tomcat.

for e.g /secure/myprog.cgi?username=user1&masteraccount=master1 (logged in
Apache), however tomcat rejects the request as
request.getParameter("username") can not be null. I have been running the
same code for ages and now I am noticing this. This is happening to roughly
1% of the requests.

Following is my Apache config

APACHE    StartServers            15
APACHE    MinSpareThreads         25
APACHE    MaxSpareThreads         75
APACHE    ThreadLimit             512
APACHE    ThreadsPerChild         32
APACHE    MaxRequestWorkers       2048
APACHE    MaxConnectionsPerChild  2048
APACHE    AsyncRequestWorkerFactor 3
APACHE    ServerLimit 64

And this is my tomcat settings

TOMCAT    protocol="AJP/1.3"
TOMCAT    packetSize="32000"
TOMCAT    maxThreads="800"
TOMCAT    processorCache="800"
TOMCAT    acceptCount="300"
TOMCAT    acceptorThreadCount="2"
TOMCAT    minSpareThreads="80"
TOMCAT    maxSpareThreads="160"
TOMCAT    maxKeepAliveRequests="-1"
TOMCAT    maxConnections="8192"
TOMCAT    connectionTimeout="360000"
TOMCAT    compression="on"
TOMCAT    compressableMimeType="text/html,text/xml,text/plain"
TOMCAT    redirectPort="8443"

Worker.properties config

worker.ajp_myhost.port=8009
worker.ajp_myhost.host=localhost
worker.ajp_myhost.type=ajp13
worker.ajp_myhost.retries=3
worker.ajp_myhost.recovery_options=27
worker.ajp_myhost.retry_interval=300
worker.ajp_myhost.reply_timeout=20000
worker.ajp_myhost.max_packet_size=32000
worker.ajp_myhost.socket_timeout=360
worker.ajp_myhost.socket_connect_timeout=360000
worker.ajp_myhost.connection_pool_timeout=360



Can someone please help me with 2 things.

1. Has anyone noticed request parameters dropping in transit ?
2. Help with fine tuning my Apache/Tomcat/mod_jk configs. During peak the
server will be handling 50 req/seconds.

Please let me know if you need anymore details.

Thanks
Manish

Reply via email to