tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jäkel, Guido <>
Subject RE: mod_jk/1.2.37 Apache/2.4.7 (Ubuntu): AJP established connections pile up, connection_pool_timeout has no effect?
Date Wed, 31 Aug 2016 13:12:28 GMT
Dear Hildegard,

you wrote, you're using the worker MPM. What are the pool sizes for child workers and it's
threads, i.e. the values for  ServerLimit, ThreadsPerChild? And what's the minimum thread
pool size, i.e.   MinSpareThreads? 

Note that the AJP connection pool is used per child (and per tomcat backend definition if
you're using more than one). You use connection_pool_minsize=1.  Please also note, that the
spare threads will no gather to the lowest possible number of childs. May this facts explain
the "remaining idle" AJP connections?

But even if the number of connections is unexpected high -- this will not consome more memory
time by time after establishing. 

If you see a real leak, this will have another reason. One from my lessons learned: If you're
write access and error logs by a piped process like rotatelogs, this will "slowly and continuous
eat up memory", if it will not consume. This will e.g. happen, if rotatelogs can't create
files because of a broken path or lack of rights.



>-----Original Message-----
>From: Hildegard Meier []
>Sent: Wednesday, August 31, 2016 2:11 PM
>Subject: mod_jk/1.2.37 Apache/2.4.7 (Ubuntu): AJP established connections pile up, connection_pool_timeout
has no effect?
>Ubuntu Trusty 14.0.4 LTS 64 Bit
>Apache/2.4.7 (Ubuntu)
>I have much investigated into this, but have no idea, why the AJP connections from the
Apache (MPM worker) to the AJP
>backends pile up.
>They do not get closed, they stay in state ESTABLISHED.
>Over night, the idle connections should be closed from the pool, but the do not get closed,
they get more and more every
>day, and the RAM of the Apache server gets eaten up.
>We have the following /etc/libapache2-mod-jk/
># not used
># not used
># General worker template
>and on the AJP backends (Jboss / EAP), we have also set the connectionTimeout to 600000
ms , as written in
>But even a Backend with low traffic, (maybe one request per minute) gets 300 established
AJP connections after some days.
>Here the content of /etc/apache2/mods-enabled/jk.conf:
><IfModule jk_module>
>    JkWorkersFile /etc/libapache2-mod-jk/
>    JkLogFile /var/log/apache2/mod_jk.log
>    JkLogLevel info
>    JkShmFile /var/log/apache2/jk-runtime-status
>    JkWatchdogInterval 60
>It looks like the JkWatchdog is not running? Or do the connections do not idle because
of some non-Apache requests like
>Your support is much appreciated.
>To unsubscribe, e-mail:
>For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message