AnsweredAssumed Answered

Change timeout settings on Tomcat. App not responding back to load balancer (mod_jk)

Question asked by Suhas Kamble on May 21, 2015
Latest reply on Jun 5, 2015 by Suhas Kamble

Tomcat Connector port 9580 is specified in CSA and it works fine for some days. But after few days(3 to 7 days) the web server starts throwing errors LIKE



[Wed May 20 15:42:18 2015][:] [error] ajp_service::jk_ajp_common.c (2693): (app) connecting to tomcat failed.

[Wed May 20 15:42:18 2015][:] [info] service::jk_lb_worker.c (1519): service failed, worker app is in error state

[Wed May 20 15:42:18 2015][:] [info] service::jk_lb_worker.c (1599): All tomcat instances are busy or in error state

[Wed May 20 15:42:18 2015][:] [error] service::jk_lb_worker.c (1604): All tomcat instances failed, no more workers left

[Wed May 20 15:42:18 2015][:] [info] jk_handler::mod_jk.c (2806): Service error=0 for worker=loadbalancer

[Wed May 20 15:42:18 2015]loadbalancer WEB_SERVER_HOST 42.366119







[apache@WEB_SERVER_HOST conf]$ cat mod-jk.conf

# Load mod_jk module

# Specify the filename of the mod_jk lib

LoadModule jk_module modules/



# Where to find

JkWorkersFile conf/



# Where to put jk logs

JkLogFile logs/mod_jk.log



# Set the jk log level [debug/error/info]

JkLogLevel info



# Select the log format

JkLogStampFormat "[%a %b %d %H:%M:%S %Y]"



# JkOptions indicates to send SSK KEY SIZE

# Notes:

# 1) Changed from +ForwardURICompat.

# 2) For mod_rewrite compatibility, use +ForwardURIProxy (default since 1.2.24)

# See

JkOptions +ForwardKeySize +ForwardURICompatUnparsed -ForwardDirectories



# JkRequestLogFormat

JkRequestLogFormat "%w %V %T"



# Mount your applications

JkMount /* loadbalancer

# Let Apache serve the images

#JkUnMount /blahblah* loadbalancer



# You can use external file for mount points.

# It will be checked for updates each 60 seconds.

# The format of the file is: /url=worker

# /examples/*=loadbalancer

JkMountFile conf/



# Add shared memory.

# This directive is present with 1.2.10 and

# later versions of mod_jk, and is needed for

# for load balancing to work properly

# Note: Replaced JkShmFile logs/jk.shm due to SELinux issues. Refer to


JkShmFile run/jk.shm



# Add jkstatus for managing runtime data



<Location /jkstatus>

    JkMount status

    Order deny,allow

    Deny from all

    Allow from



[apache@WEB_SERVER_HOST conf]$ cat

worker.list=loadbalancer,status APP_SRV_HOST




# Load-balancing behaviour





# Status worker for managing load balancer



[apache@WEB_SERVER_HOST conf]$ cat



# Mount the Servlet context to the ajp13 worker


[apache@WEB_SERVER_HOST conf]$