Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 38593 invoked from network); 24 Feb 2006 17:49:12 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 24 Feb 2006 17:49:12 -0000 Received: (qmail 20797 invoked by uid 500); 24 Feb 2006 17:48:58 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 20783 invoked by uid 500); 24 Feb 2006 17:48:58 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 20772 invoked by uid 99); 24 Feb 2006 17:48:57 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 24 Feb 2006 09:48:57 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [207.113.241.148] (HELO iss04.interliant.com) (207.113.241.148) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 24 Feb 2006 09:48:57 -0800 Received: from EX-007.mail.navisite.com (ex-007.interliant.com [207.113.240.186]) by iss04.interliant.com (8.10.2/8.10.2) with ESMTP id k1OHqLf14267 for ; Fri, 24 Feb 2006 11:52:21 -0600 (CST) Received: from EX-008.mail.navisite.com ([172.16.1.18]) by EX-007.mail.navisite.com with Microsoft SMTPSVC(6.0.3790.1830); Fri, 24 Feb 2006 11:48:32 -0600 Received: from [192.168.0.117] ([213.202.112.52]) by EX-008.mail.navisite.com with Microsoft SMTPSVC(6.0.3790.1830); Fri, 24 Feb 2006 11:48:32 -0600 Message-ID: <43FF46EA.2050406@jboss.com> Date: Fri, 24 Feb 2006 18:48:26 +0100 From: Mladen Turk Organization: JBoss Europe User-Agent: Mozilla MIME-Version: 1.0 To: Tomcat Users List Subject: Re: number of established connections keep growing References: <20060224171930.6634.qmail@web36213.mail.mud.yahoo.com> In-Reply-To: <20060224171930.6634.qmail@web36213.mail.mud.yahoo.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 24 Feb 2006 17:48:32.0318 (UTC) FILETIME=[87231DE0:01C6396A] X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Victor Granic wrote: > Hello! > > I'm running Tomcat 5.0.28 on a Windows 2000 server. Tomcat is wrapped > using the Java Service Wrapper. All connections to the Tomcat service > come from a proxy running apache+mod_jk on linux. > > Problem: The number of ESTABLISHED connections continue to grow on the > Windows server until users are unable to access the web site. This is because mod_jk uses constant connection pool, and once when the connection is established it stays open for the server lifetime. The reason why connections are growing is because the Apache will create up to MaxClient connections. Also if you have a firewall between mod_jk and Tomcat that tends to cut the inactive connections, the Tomcat connection will be half-closed. Apache will reconnect and your connection count will rise. The solution is to set the connectionTimeout in server.xml that will close the inactive connections. This number should be large, like 10 ... 30 minutes, so that performance doesn't suffer. Regards, Mladen. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org