Apache HTTP Server/Tomcat Load Balancing Problem
Posted on 2007-03-30
I am trying to load balance our web based application using Apache HTTP Server and Tomcat on Linux.
I think I have setup the environments correctly, although I am not sure of the configuration parameters for either apache or tomcat. We have apache running on one linux server and 2 instances of tomcat running on two nodes with linux installed.
I am using JMeter to test the load on our app. I can get JMeter to send 30 simultanous requests (num of users) for 4 consecutive intervals in each thread group, however as I change the number of users to 35, I start getting
"HTTP response code: 500
HTTP response message: Internal Server Error" errors.
As I monitor apache's log file, I can see it is receiving all the POST requests, however it seems to me like it is not able to send them all to its workers, tomcat1 and tomcat2, or workers are not capable of accepting and serving these requests.
If you have any suggestions/recommendations on how to configure apache or tomcat to handle more simultanous users, please advise.
I am using:
mod_jk: download mod_jk-1.2.21-apache-2.2.x-linux-i686.so