Hello,
Please ensure that you are trying to create a fresh new session when
testing.
I usually test load balancing by doing the following:
On every server:
tail -f
a_log_file_that_fills_if_there_is_activity_such_as_catalina.out_or_access.log
On a client:
while true; do wget -O /dev/null
http://apache_server/path/to/context/jsp/or/servlet; done
If you see activity on both logs, load balancing is OK. Never mind
whether you use sticky sessions or not. You are sure that ALL requests
are "fresh new" requests, with no session ID.
If you are using a browser, you have to ensure that you clean your
cookies before each request, which is really embarrassing. Other than
that, you can disable cookies on your browser, and repeatedly hit
"reload" after clearing all cookies once.
HTH,
Antonio Fiol
Drinkwater, GJ (Glen) wrote:
Hi
I can make the apache do load balancing, giving each server 50% of the
traffic. When i try to create sticky sessions, it works, but only the first
tomcat instance gets all the traffic.
Is it possible to have sticky sessions with load balancing (with tomcat and
mod_jk2), ie if a user without a session comes in they go to tomcat1,
then the next instance etc, but if a user comes in with a session id, it
goes to the tomcat instance that i was created on???
Glen
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
smime.p7s
Description: S/MIME Cryptographic Signature