Return-Path: Delivered-To: apmail-jakarta-httpclient-user-archive@www.apache.org Received: (qmail 91104 invoked from network); 20 May 2007 07:36:35 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 20 May 2007 07:36:35 -0000 Received: (qmail 4509 invoked by uid 500); 20 May 2007 07:36:40 -0000 Delivered-To: apmail-jakarta-httpclient-user-archive@jakarta.apache.org Received: (qmail 4491 invoked by uid 500); 20 May 2007 07:36:40 -0000 Mailing-List: contact httpclient-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: "HttpClient User Discussion" Reply-To: "HttpClient User Discussion" Delivered-To: mailing list httpclient-user@jakarta.apache.org Received: (qmail 4480 invoked by uid 99); 20 May 2007 07:36:39 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 20 May 2007 00:36:39 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS X-Spam-Check-By: apache.org Received-SPF: neutral (herse.apache.org: local policy) Received: from [212.227.126.186] (HELO moutng.kundenserver.de) (212.227.126.186) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 20 May 2007 00:36:33 -0700 Received: from [85.180.36.119] (helo=[85.180.36.119]) by mrelayeu.kundenserver.de (node=mrelayeu5) with ESMTP (Nemesis), id 0ML25U-1Hpfxc0GTX-0006GT; Sun, 20 May 2007 09:36:12 +0200 Message-ID: <464FFB93.8060509@dubioso.net> Date: Sun, 20 May 2007 09:41:07 +0200 From: Roland Weber User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.2) Gecko/20070319 SeaMonkey/1.1.1 MIME-Version: 1.0 To: HttpClient User Discussion Subject: Re: Too Many Files Error References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Provags-ID: V01U2FsdGVkX19S5AAS+NnGKcol2zWIylNYD3D/n6R+rNXHsS3 ZUGxu/NEFvpa6udG/i9zTrx7nrmfOSGJ7SKSh09cCEQsmugGKD dN7tOo0OiXFtA2Lv/A7umHTll9rl5WF X-Virus-Checked: Checked by ClamAV on apache.org Hi Rick, sorry for the late reply, I got distracted by other stuff. >> When I run an application on a Linux OS in the WebSphere application >> server we are sporadically running into a "too many Files open" error. >> I am creating one multi-threaded connection manager and one client >> which are re-used across threads. I release connections in a finally >> block so I don't think that is an issue. Not sure why this happening >> under load. Any help would be appreciated Files in Unix/Linux are a very generic term and probably refer to or include open connections. Have you checked the system setting for the number of open "files" allowed for a process? I guess that incoming and outgoing connections are counted separately. You should check how many connections the application server accepts (number of service threads), and what the total limit of HttpClient connections is. I'm not sure, but it may be a kernel parameter you have to tweak for Linux: http://www.performancewiki.com/linux-tuning.html The WAS InfoCenter also includes a tuning guide: http://www-306.ibm.com/software/webservers/appserv/was/library/ They suggest to change the file descriptor limit using the "ulimit" command. The default on SuSE is 1024, the recommended value is 8000: http://publib.boulder.ibm.com/infocenter/wasinfo/v6r1/topic/com.ibm.websphere.base.doc/info/aes/ae/tprf_tunelinux.html There is also tuning stuff to be found on developerWorks, like http://www.redbooks.ibm.com/abstracts/REDP3862.html hope that helps, Roland --------------------------------------------------------------------- To unsubscribe, e-mail: httpclient-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: httpclient-user-help@jakarta.apache.org