Hi,
I have Apache connected to two
tomcat server all on the same machine. I am measuring the latency through the mod_jk logs.
I find that its very weird that the latency is very high for a purticular IP adress originating from china ( I used iplocator find this).
Latency is typically of the order of 30-60 seconds for a simple page.
The highest latency with I expect is of 3-4 seconds.
My server is a powerful 16 core/32 Gig and it is very lightly loaded.
OS Windows 2008/64bit
Apache Server Version: Apache/2.2.8 (Win32) mod_jk/1.2.31
Tomcat apache-tomcat-6.0.18. 64 Bit JVM
Any help is greatly apreciated..
--Worker Config
#worker.list=server1,server2
worker.maintain=60
worker.list=balancer,jkstatus
worker.server1.port=8009
worker.server1.host=127.0.0.1
worker.server1.type=ajp13
worker.server1.lbfactor=1
worker.server1.socket_keepalive=true
worker.server1.connection_pool_timeout=600
worker.server1.ping_mode=A
worker.server1.ping_timeout=5000
worker.server1.socket_timeout=10
worker.server1.reply_timeout=300000
worker.server1.connect_timeout=10000
worker.server1.prepost_timeout=10000
worker.server2.port=9009
worker.server2.host=127.0.0.1
worker.server2.type=ajp13
worker.server2.lbfactor=1
worker.server2.socket_keepalive=true
worker.server2.connection_pool_timeout=600
worker.server2.ping_mode=A
worker.server2.ping_timeout=5000
worker.server2.socket_timeout=10
worker.server2.reply_timeout=300000
worker.server2.connect_timeout=10000
worker.server2.prepost_timeout=10000
worker.balancer.type=lb
worker.balancer.balance_workers=server1,server2
worker.balancer.method=B
--Tomcat Config
<Connector port="8009" redirectPort="8443" connectionTimeout="600000" protocol="AJP/1.3" minSpareThreads="50" enableLookups="false"/>
-- Apache config
# Path to workers.properties
JkWorkersFile "C:/SERVERS/Apache2.2/conf/workers.properties"
# Path to jk logs
JkRequestLogFormat "%T %r %w"
JkLogFile C:/SERVERS/Apache2.2/logs/mod_jk.log
JkMount /* balancer
# Add the jkstatus mount point
JkMount /jkmanager/* jkstatus
For most of the other IPs the latency is less than 1 second
thanks in advance.