Return-Path: Delivered-To: apmail-activemq-users-archive@www.apache.org Received: (qmail 73374 invoked from network); 11 May 2009 07:55:37 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 11 May 2009 07:55:37 -0000 Received: (qmail 69259 invoked by uid 500); 11 May 2009 07:55:37 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 69209 invoked by uid 500); 11 May 2009 07:55:37 -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 69199 invoked by uid 99); 11 May 2009 07:55:37 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 11 May 2009 07:55:37 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [213.239.154.10] (HELO adonis.tweakers.net) (213.239.154.10) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 11 May 2009 07:55:25 +0000 Received: from localhost (localhost [127.0.0.1]) by adonis.tweakers.net (Postfix) with ESMTP id 564DC5DC17C for ; Mon, 11 May 2009 09:55:05 +0200 (CEST) Received: from adonis.tweakers.net ([127.0.0.1]) by localhost (adonis.tweakers.net [127.0.0.1]) (amavisd-maia, port 10024) with ESMTP id 27276-01 for ; Mon, 11 May 2009 09:54:58 +0200 (CEST) Received: from groupware.tweakers.net (groupware.tweakers.net [87.233.197.175]) by adonis.tweakers.net (Postfix) with ESMTP id DC67C5DC126 for ; Mon, 11 May 2009 09:54:58 +0200 (CEST) X-MDAV-Processed: groupware.tweakers.net, Mon, 11 May 2009 09:54:29 +0200 Received: from [10.0.0.153] by groupware.tweakers.net (Cipher TLSv1:RC4-MD5:128) (MDaemon PRO v10.0.5) with ESMTP id md50000133315.msg for ; Mon, 11 May 2009 09:54:28 +0200 X-Spam-Processed: groupware.tweakers.net, Mon, 11 May 2009 09:54:28 +0200 (not processed: spam filter heuristic analysis disabled) X-Return-Path: acmmailing@tweakers.net X-Envelope-From: acmmailing@tweakers.net X-MDaemon-Deliver-To: users@activemq.apache.org Message-ID: <4A07D9CE.80200@tweakers.net> Date: Mon, 11 May 2009 09:54:54 +0200 From: Arjen van der Meijden User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) MIME-Version: 1.0 To: users@activemq.apache.org Subject: Re: too many open files References: <23473539.post@talk.nabble.com> <4A07BCF2.8030504@tweakers.net> <23478321.post@talk.nabble.com> In-Reply-To: <23478321.post@talk.nabble.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.2 X-Virus-Checked: Checked by ClamAV on apache.org Well, that is really mostly the default config with some small differences. - I completely commented out the "destinationPolicy"-tag. This also disables the per-queue/topic size limits. - I upped the memoryUsage to 200 mb, the storeUsage to 1 gb and the tempUsage to 1 gb. - I changed the connector uri's (for stomp and openwire) to contain "?transport.closeAsync=false". These settings aren't really well thought through and only aimed at our very high connect/send/disconnect rate, they're just changes that should disable or enlarge some of the limitations I was running in to. And as you could see from the issue-report, I used a different JAVA_OPTS to allow for some larger heap and such. Best regards, Arjen On 11-5-2009 9:29, DataMover wrote: > > I looked at that issue url you gave and wow, had a lot of great info. > > Any chance one could get a copy of the configuration xml file you created > that solved the issue for you. > Just to get some ideas. > > I had upped the memory limits via the etc security limit file and that at > least seemed to increase the load and slow the system down. Have not tried > it again after that. > > As far as upping the queue sizes, is there a limit? > Are there best practices anywhere? > > > > Arjen van der Meijden wrote: >> There may be at one or more of these three issues that I ran into: >> >> - You actually have a too low setting for the open files. Try increasing >> it (see man ulimit etc, be careful that normally only root can increase >> it beyond 1024, but other programs, including su do inherit it). >> >> - You're opening and closing connections too fast, this is what we had: >> http://issues.apache.org/activemq/browse/AMQ-1739 >> Adding the "?transport.closeAsync=false"-parameter to the url helped us >> here. >> >> - You're queues may be getting larger than the limits. Especially the >> 5mb per queue limit in the default configuration is easy to hit. Once I >> raised the global limits and removed the per-queue/topic limits it has >> worked stable for several months in a row (since feb 19 our single >> broker has queued and dequeued over 300M tiny messages). >> >> 30 and 250 producers isn't that many, so unless they're maxing out your >> broker system on some other resource than file pointers, my guess is the >> single machine should be able to handle them. >> >> Best regards, >> >> Arjen >> >> On 10-5-2009 22:03 DataMover wrote: >>> I have seems several posts on this but I have not been able to solve our >>> situation. >>> >>> We have 30 clients (producers) working with one activemq server. >>> All worked amazingly well. >>> >>> Then we tried a test with around 250 clients. >>> >>> That would get many transport errors. >>> Increasing the file limits on the os caused the system to come to a crawl >>> with no benefit. >>> >>> I am assuming the problem can be solved with multiple brokers being run. >>> One question is do they have to be on different machines, or can we have >>> multiple activemqs running on the same server, each listening on a >>> different >>> ip? >>> >>> >> >