title: Apache Sticky sessions
body: <p>I have configured a sticky session set up with a load balancer (Apache) and three app nodes running Jboss 4.2.2 .
  the load balancer uses mod_jk and settings as mentioned in the tutorial here.</p>
  
  <p><a href="http://community.jboss.org/wiki/UsingModjk12WithJBoss;jsessionid=1569CBFB7C3096C59C977CD3F7159A32" rel="nofollow noreferrer">http://community.jboss.org/wiki/UsingModjk12WithJBoss;jsessionid=1569CBFB7C3096C59C977CD3F7159A32</a></p>
  
  <p>I have the jumRoute set as node1 ,node2 and node3 for the three nodes and my workerlist property for load balancer is set as 
  node1,node2,node3</p>
  
  <p>The tutorial has been followed till the last point but I did not configure the useJK parameters under.the value is still set to false.
  The sticky sessions are holding up but I seem to loose session and get this error in my mod_jk log file</p>
  
  <p>[error] ajp_get_reply::jk_ajp_common.c (1926): (node1) Timeout with waiting reply from tomcat. Tomcat is down, stopped or network problems (errno=110)</p>
  
  <p>I personally checked the user logged in on node1 and then moved to node2.</p>
  
  <p>Does Apache redirect to another node when it fails to get reply from node1, How does useJk help in this situation.</p>
  
  <p>---edit 01---</p>
  
  <ol>
  <li>I changed the UseJK value to true but still few users still experience sudden log out which I know due to change in the server node catering the users request.</li>
  <li>I also wanted to know whether traffic on the nodes has any affect on sticky session and how to counter it.( I am experiencing high load on all the servers for a few days)</li>
  </ol>
  
  <p>----edit 02 ----</p>
  
  <ol>
  <li>I would also like to know about controlling the number of connections per worker.   </li>
  <li>controlling   the number of ajp   connector/connections.</li>
  <li>relation   between the number of connections of    apache load balancer and number of
  ajp connections in JBoss worker    nodes.</li>
  <li>what would be the best    configuration between Apache 2.2.3    and JBoss 4.2.2 worker nodes with  Tomcat 5.5 connectors.</li>
  </ol>
  
  <p>---- edit03-----
   <a href="http://community.jboss.org/wiki/OptimalModjk12Configuration" rel="nofollow noreferrer">http://community.jboss.org/wiki/OptimalModjk12Configuration</a></p>
  
  <p>using the above article i just wanted to know the best values for Apache
  MaxClients
  ThreadPerChild</p>