Solved

Apache - tomcat  -jk   close idle  connections

Posted on 2006-07-03
2
817 Views
Last Modified: 2008-01-09
Hi,
 I have  a site configured with apache and tomcat (mod_jk).
Apache and tc are on diffrent servers.
 The  problem is that in case of network problems  (apache host and tc host don't communicate anymore) ,  apache  proceses  reach max childs and apache need restart. even if apache  doesn't reach maxChilds, tomcat became unavailable in 2-3 hours  - it reaches its maximum processes value.

this is  big problem because the site  has a very high load - even 30 sec -1 min not communication time is a problem.
 I would like to configure the worker to close the connection if idle  for a period, but this  should not afftect the performance, or the actiive jk connections..


 
0
Comment
Question by:Tol_cv
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 19

Accepted Solution

by:
ramazanyich earned 500 total points
ID: 17033770
You can try to manipulate with parameters:
worker.maintain
socket_timeout
connection_pool_timeout
in workers.properties.

check http://tomcat.apache.org/connectors-doc/config/workers.html for details
0
 
LVL 10

Expert Comment

by:sleep_furiously
ID: 17033787
There are several features for controlling the life cycle of socket connections for AJP 13.

For the case of connection problems, probably the most useful for you will be connect_timeout and prepost_timeout.  These set the number of milliseconds the server will wait for a PONG response to a PING request:

  worker.<workername>.connect_timeout = 500
  worker.<workername>.prepost_timeout = 500

There are other timeouts that can be set for the cache/connnection pool.  A lot of these are changing with JK version 1.2.16.  More details can be found here:

http://tomcat.apache.org/connectors-doc/config/workers.html

0

Featured Post

Raise the IQ of Your IT Alerts

From IT major incidents to manufacturing line slowdowns, every business process generates insights that need to reach the people required to take action. You need a platform that integrates with your business tools to create fully enabled DevOps toolchains.

You need xMatters.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you are running a LAMP infrastructure, this little code snippet is very helpful if you are serving lots of HTML, JavaScript and CSS-related information. The mod_deflate module, which is part of the Apache 2.2 application, provides the DEFLATE…
Over the last year I have answered a couple of basic URL rewriting questions several times so I thought I might as well have a stab at: explaining the basics, providing a few useful links and consolidating some of the most common queries into a sing…
In this video, viewers are given an introduction to using the Windows 10 Snipping Tool, how to quickly locate it when it's needed and also how make it always available with a single click of a mouse button, by pinning it to the Desktop Task Bar. Int…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

696 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question