wood burning stoves 2.0*
The moose likes Tomcat and the fly likes High mod_jk latency for one Puticulat Ip Adress Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "High mod_jk latency for one Puticulat Ip Adress" Watch "High mod_jk latency for one Puticulat Ip Adress" New topic
Author

High mod_jk latency for one Puticulat Ip Adress

Sk Kar
Greenhorn

Joined: Jun 17, 2011
Posts: 1
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: High mod_jk latency for one Puticulat Ip Adress