Return-Path: Delivered-To: apmail-activemq-users-archive@www.apache.org Received: (qmail 75965 invoked from network); 13 May 2008 13:04:30 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 13 May 2008 13:04:30 -0000 Received: (qmail 23976 invoked by uid 500); 13 May 2008 13:04:31 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 23957 invoked by uid 500); 13 May 2008 13:04:31 -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 23946 invoked by uid 99); 13 May 2008 13:04:30 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 May 2008 06:04:30 -0700 X-ASF-Spam-Status: No, hits=2.6 required=10.0 tests=DNS_FROM_OPENWHOIS,SPF_HELO_PASS,SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 May 2008 13:03:44 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1JvuAg-0004v2-Aw for users@activemq.apache.org; Tue, 13 May 2008 06:03:58 -0700 Message-ID: <17207910.post@talk.nabble.com> Date: Tue, 13 May 2008 06:03:58 -0700 (PDT) From: Danilo Tuler To: users@activemq.apache.org Subject: Re: java.lang.OutOfMemoryError: unable to create new native thread on AMQ 5.0 In-Reply-To: <4828AAD0.1080303@hanik.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: tuler@ideais.com.br References: <1f38e67c0805011009g284eb3c8iacaadfd753cd3296@mail.gmail.com> <481A10EC.8080707@hanik.com> <1f38e67c0805011445v6b5415d9icfc85b7800a5820a@mail.gmail.com> <481A5028.4050601@hanik.com> <8F6BD996-FB62-44EB-8874-70801F91FB94@gmail.com> <4828AAD0.1080303@hanik.com> X-Virus-Checked: Checked by ClamAV on apache.org Hi, I have this problem too. It happens with AMQ 5.0.0 and 5.1.0. Works fine with 4.1.1 and 4.1.2. I can see the number of threads using the windows task manager, and it's not good :-) +2000 threads. My client application is a producer, and it sends thousands of messages to thousands of differents topics. There are no subscribers to those topics. Async send is set to false. Even when the client application is shutdown the threads are kept alive. There is surely a thread leak, and maybe there is a direct relationship with the number of topics created. I've read several topics here, JIRA issues, and an article about AMQ thread handling, but did not come out with a clue. Best regards, Danilo -- View this message in context: http://www.nabble.com/java.lang.OutOfMemoryError%3A-unable-to-create-new-native-thread-on-AMQ-5.0-tp17005441s2354p17207910.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.