We use Apache Http Server as web server, which load-balances two Jboss
servers. Assumed worker1 is responsed to Jboss1 and worker2 to Jboss2.

Assumed a request comes and a session with ID is created and assumed it goes
to Jboss1. Normally this session will keep so long by Jboss1 till the
session is ended by user (such as the program goes to end-state of
spring-web-flow) or timeout comes.

Now I have a strange problem. Sometimes (not often) during using the
program, I get exception that the session is gone. As I looked into the
mod_jk.log I found following message:
[code]
...
[Mon Dec 07 11:42:17 2009] [13193:2537062720] [error]
ajp_get_reply::jk_ajp_common.c (1962): (icf1) Tomcat is down or refused
connection. No response has been sent to the client (yet)
[Mon Dec 07 11:42:17 2009] [13193:2537062720] [error]
ajp_service::jk_ajp_common.c (2440): (icf1) sending request to tomcat failed
(unrecoverable),  (attempt=1)
[Mon Dec 07 11:42:17 2009] [13193:2537062720] [info] service::jk_lb_worker.c
(1384): service failed, worker icf1 is in error state
[Mon Dec 07 11:42:17 2009] [13193:2537062720] [error]
service::jk_lb_worker.c (1409): unrecoverable error 502, request failed.
Tomcat failed in the middle of request, we can't recover to another
instance.
[Mon Dec 07 11:42:17 2009] [13193:2537062720] [error]
service::jk_lb_worker.c (1469): All tomcat instances failed, no more workers
left
...
[/code]

And as I looked into the log of Jboss2, I can find the session-ID which
should be found in log of Jboss1. I've checked all the Jboss servers are
running.

Here is my workers.properties:
[code]
...
worker.template.connection_pool_timeout=300
worker.template.socket_keepalive=True
worker.template.lbfactor=1
worker.template.type=ajp13
worker.template.ping_timeout=10000
worker.template.ping_mode=A
worker.template.retries=2
worker.template.activation=A
worker.template.recovery_options=7


###################################
#  4.1 Set properties for worker_monther. If you have more than one
worker_son, just separate them with ','.
#      And you have to set the properties similar to 3.1.1.
###################################
#Load balancer for appl-icf.proactiv.de
worker.worker1.balance_workers=icf1,icf2
worker.worker1.sticky_session=True
worker.worker1.type=lb
worker.worker1.error_escalation_time=0

###################################
#  4.1.1 Set the properties for worker_son.
###################################
worker.icf1.reference=worker.template
worker.icf1.port=8009
worker.icf1.host=appl1-icf.mycompany.com

worker.icf2.reference=worker.template
worker.icf2.port=8009
worker.icf2.host=appl2-icf.myomcpany.com
...
[/code]

I think my workers.properties is OK.I can't image why sometimes the mod_jk
tells the all the Tomcat/Jboss instanz failed though they are running.
-- 
View this message in context: 
http://old.nabble.com/A-question-about-session-id-problem-tp26694818p26694818.html
Sent from the Apache HTTP Server - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
   "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org

Reply via email to