?
Solved

Apache - tomcat  -jk   close idle  connections

Posted on 2006-07-03
2
Medium Priority
?
818 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 1500 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

Get real performance insights from real users

Key features:
- Total Pages Views and Load times
- Top Pages Viewed and Load Times
- Real Time Site Page Build Performance
- Users’ Browser and Platform Performance
- Geographic User Breakdown
- And more

Question has a verified solution.

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

In my time as an SEO for the last 2 years and in the questions I have assisted with on here I have always seen the need to redirect from non-www urls to their www versions. For instance redirecting http://domain.com (http://domain.com) to http…
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). #…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
Suggested Courses

777 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