I'm new to this forum. So if I should be posting elsewhere just let me know.
We're experiencing timeouts in our web apps. We're using apache with mod_jk to front JBoss. Many of the mod_jk connections get "stuck". Issuing netstat on the JBoss server shows dozens of port 8009 ajp13 connections that are in an Established state with data in the "Receive Queue" but the data never gets handled by JBoss. These same connections just stay put with the same data in the receive queue for hours and days. And the connections get used up so there are no threads left to service inbound connections.
Here's our version list:
*Apache httpd-2.0.46-44.ent (on RHEL)
*Jakart Tomcat Connectors ver. 1.2.10 and 1.2.12 (both tried with same results)
*jboss-4.0.2
workers.properties is:
# Define Node1
worker.app1.port=8009
worker.app1.host=app1.testbed.com
worker.app1.type=ajp13
worker.app1.lbfactor=1
worker.app1.socket_timeout=1
worker.app1.cache_timeout=1
# Define Node2
worker.app2.port=8009
worker.app2.host=app2.testbed.com
worker.app2.type=ajp13
worker.app2.lbfactor=1
worker.app2.socket_timeout=1
worker.app1.cache_timeout=1
# Load-balancing behaviour
worker.loadbalancer.type=lb
worker.loadbalancer.balanced_workers=app1,app2
#worker.loadbalancer.sticky_session=0
worker.loadbalancer.sticky_session=1
#worker.loadbalancer.local_worker_only=1
worker.loadbalancer.socket_timeout=1
worker.loadbalancer.cache_timeout=1
worker.list=loadbalancer,status
# Status worker for managing load balancer
worker.status.type=status
Relevant Apache config:
<VirtualHost *>
ServerName www.testbed.com
DocumentRoot /var/vhosts/testbed.com/httpdocs
ErrorLog /var/vhosts/testbed.com/logs/error_log
CustomLog /var/vhosts/testbed.com/logs/access_log common
ServerAdmin webmaster@testbed.com
JkMount /nhd/*.html loadbalancer
JkMount /nhd-dev/*.html loadbalancer
JkMount /1v7xbjt23/* status
Not sure what other conf files can be of use. Any suggestions?
THIS JUST IN:
We have moved to Apache 2.0.54 with mod_jk 1.2.14. For now the connections are no longer getting stuck. Can anyway confirm this is a good version combination? Should this continue to work well? Thanks.