Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have machine A running Apache 2.2 (acting as load balancer) and 2 machines(B & C) both running Tomcat and Java Web Application on Windows 7 in a network. Is there any way I can check:

  1. If the Web application is down but the Tomcat is still running on Machine B and redirect the request to Machine C

Does this has to do with modifying the Tomcat or Apache 2.2 config? Thanks.

share|improve this question
What is the configuration that you use inside the Apache server that acts as a load balancer? Are you using a specific module for load balancing? – objectified Apr 3 '12 at 9:33
yes. using jk_mod – ZXingIT Apr 4 '12 at 3:23
up vote 0 down vote accepted

Basically what you seem to want is a method of health checking on the application level. mod_jk only does TCP level checks AFAIK. If you want to use a more intelligent form of load balancing, you may be better off using something like HAProxy, which can monitor specific URLs inside your application based on which it will decide if the checked node is healthy. Hardware load balancers such as F5's BigIP also offer a wide range of configurable health checks, but they are relatively expensive.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.