Solved

Apache - tomcat  -jk   close idle  connections

Posted on 2006-07-03
2
810 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
2 Comments
 
LVL 19

Accepted Solution

by:
ramazanyich earned 500 total points
Comment Utility
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
Comment Utility
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

If you've heard about htaccess and it sounds like it does what you want, but you're not sure how it works... well, you're in the right place. Read on. Some Basics #1. It's a file and its filename is .htaccess (yes, with a dot in the front). #…
It is possible to boost certain documents at query time in Solr. Query time boosting can be a powerful resource for finding the most relevant and "best" content. Of course the more information you index, the more fields you will be able to use for y…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

772 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now