Return-Path: X-Original-To: apmail-tomcat-users-archive@www.apache.org Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 9E193EC5A for ; Wed, 16 Jan 2013 16:26:07 +0000 (UTC) Received: (qmail 3024 invoked by uid 500); 16 Jan 2013 16:26:04 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 2960 invoked by uid 500); 16 Jan 2013 16:26:04 -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 2950 invoked by uid 99); 16 Jan 2013 16:26:04 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 Jan 2013 16:26:04 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of aw@ice-sa.com designates 212.85.38.228 as permitted sender) Received: from [212.85.38.228] (HELO tor.combios.es) (212.85.38.228) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 Jan 2013 16:25:57 +0000 Received: from [192.168.2.206] (stargate.glomas.de [213.23.110.130]) (Authenticated sender: andre.warnier@ice-sa.com) by tor.combios.es (Postfix) with ESMTPA id 9E3623C07BF for ; Wed, 16 Jan 2013 17:26:55 +0100 (CET) Message-ID: <50F6D47A.5030600@ice-sa.com> Date: Wed, 16 Jan 2013 17:25:30 +0100 From: =?ISO-8859-1?Q?Andr=E9_Warnier?= Reply-To: Tomcat Users List User-Agent: Thunderbird 2.0.0.23 (Windows/20090812) MIME-Version: 1.0 To: Tomcat Users List Subject: Re: afs3-rmtsys: connections keept open References: <08E5CE5F1D6E3145B4FA31AA948C54FE2B4ABEF4@x-dag01> In-Reply-To: <08E5CE5F1D6E3145B4FA31AA948C54FE2B4ABEF4@x-dag01> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org David Kumar wrote: > Hey, > > my name is David an I'm working for a electronic consumer company in Germany we are selling and producing TV's, receiver, satellite dishes etc.. > > > We got some serious trouble with our tomcats. Basically we using two 7.0.12 tomcats on a single Debian 6.0. One is running on port 7090 and the other on 9080. Time after time both tomcats are crashing. I found too many open files in tomcatlogfiles. > Both Servers are running with one user (TOMCAT). > After changing max open files for that particular user I was able to get more than 1024 open files. Currently I'm checking log files every few minutes. With lsof|grep tomcat|wc -l I'm counting the open files by user. Usually there are around 600-700 open files. But sometimes the count grows and we have more than 1200 open files. > When ever the server does have so many open files I checked: lsof -u tomcat an figured out there are many connection waiting to be closed. The connections are looking like this: > java 22312 tomcat 153u IPv6 1508517 0t0 TCP localhost:afs3-rmtsys->localhost:50127 (CLOSE_WAIT) > I googled a bit for afs3-rmtsys and figured out that the protocol seems to be a remote cache manager. But I couldn't find any more information. > > Does anyone of you know what my problem might be? > Hi. I did some googling too, and got this explanation of "afs" : http://www.debian-administration.org/article/610/OpenAFS_installation_on_Debian#intro-afs So apparently, this is some kind of network filesystem. Can you tell us where exactly your Tomcat is installed, in terms of the files ? What you are explaining above sounds to me as if many files used are on some shared network location, and it may just be that it is the heavy usage of such files (and the opening/closing of corresponding TCP connections to access these files), that could be the cause of your problem. A "CLOSE_WAIT" state in itself is normal in the TCP protocol. It happens (temporarily) when one side of the connection closes it, and waits for the other side to acknowledge the close. (Or something like that, I would have to check really). --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org