Return-Path: Delivered-To: apmail-activemq-users-archive@www.apache.org Received: (qmail 54774 invoked from network); 5 Jan 2011 14:01:59 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 5 Jan 2011 14:01:59 -0000 Received: (qmail 36168 invoked by uid 500); 5 Jan 2011 14:01:59 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 36003 invoked by uid 500); 5 Jan 2011 14:01:57 -0000 Mailing-List: contact users-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@activemq.apache.org Delivered-To: mailing list users@activemq.apache.org Received: (qmail 35990 invoked by uid 99); 5 Jan 2011 14:01:56 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Jan 2011 14:01:56 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RFC_ABUSE_POST,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of donzymeth@gmail.com designates 209.85.210.171 as permitted sender) Received: from [209.85.210.171] (HELO mail-iy0-f171.google.com) (209.85.210.171) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Jan 2011 14:01:50 +0000 Received: by iyj21 with SMTP id 21so16565294iyj.2 for ; Wed, 05 Jan 2011 06:01:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:references:in-reply-to :content-type; bh=EXv/VrI6wA2eIiWrFbaC/6cdgFPhBM4L10N3MUbcdWU=; b=uBO9OW5ExJ41oqEDaFKgrvffGOG7E09Gr2JPTahpYSJL+nyIs6asAfgBADWxeULMr5 6DHweagWZgPyyB+DR16TFyHW+ZgXRGi5NQ3+y2QHEBGqQIAabEQ1tto6et6q4soEhd6G EIVDlJyGI3Db2auQQZOeSJp4bsQashC8cCGcU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type; b=j5/msPa+0Q9K+EUd1GyRExwtqXtpHfWC9q4eZQfpJBR9mqocNYIJ2VtCHrqyIEwKaK L3rdvKuG5IU61xvyTrrllBVspvKAKfkXQDwKog2SyA2kJIQrtFHveCSR5zqNN6aVqJJ+ 00JZphe93l+98YNg2c0/F74yNwmpVmv9zOl4E= Received: by 10.231.191.16 with SMTP id dk16mr12365664ibb.23.1294236089729; Wed, 05 Jan 2011 06:01:29 -0800 (PST) Received: from [192.168.1.38] ([125.212.33.206]) by mx.google.com with ESMTPS id z4sm20932778ibg.1.2011.01.05.06.01.27 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 05 Jan 2011 06:01:28 -0800 (PST) Message-ID: <4D2479AA.2000400@gmail.com> Date: Wed, 05 Jan 2011 22:01:14 +0800 From: Don Santillan User-Agent: Thunderbird 2.0.0.24 (X11/20101027) MIME-Version: 1.0 To: users@activemq.apache.org Subject: Too many open files References: <1294218478147-3175017.post@n4.nabble.com> <7BB5B502F2DB6D4CAFEDAFDD8602A2BD1E4DA4D53C@P3ES.pcubed.jhb> In-Reply-To: <7BB5B502F2DB6D4CAFEDAFDD8602A2BD1E4DA4D53C@P3ES.pcubed.jhb> Content-Type: multipart/alternative; boundary="------------040101000502060502040107" --------------040101000502060502040107 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Hello, I have an embedded activemq in my webapp and it is deployed in a jetty server. I believe that our server OS's file descriptor limit has enough value. After a few days, the application crashed with the following error: 2011-01-05 00:34:40.000:WARN::EXCEPTION java.io.IOException: Too many open files at sun.nio.ch.ServerSocketChannelImpl.accept0(Native Method) at sun.nio.ch.ServerSocketChannelImpl.accept(ServerSocketChannelImpl.java:145) at org.eclipse.jetty.server.nio.SelectChannelConnector$1.acceptChannel(SelectChannelConnector.java:74) at org.eclipse.jetty.io.nio.SelectorManager$SelectSet.doSelect(SelectorManager.java:650) at org.eclipse.jetty.io.nio.SelectorManager.doSelect(SelectorManager.java:195) at org.eclipse.jetty.server.nio.SelectChannelConnector.accept(SelectChannelConnector.java:134) at org.eclipse.jetty.server.AbstractConnector$Acceptor.run(AbstractConnector.java:850) at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:436) at java.lang.Thread.run(Thread.java:6 Is there a possibility that I have configured my activemq or persistence wrongly which caused this? Here's my activemq.xml: I googled this and saw some posts telling this maybe caused by an improper setting on memory limit. I also saw some threads that says use kaha db for better persistence. How am I able to address both of this? Can I configure both using the activemq.xml alone? What are the appropriate values for an application that processes large amount of messages. Can anyone point me to a good activemq.xml configuration that is good for production environment? Thanks! -don --------------040101000502060502040107--