Return-Path: X-Original-To: apmail-activemq-users-archive@www.apache.org Delivered-To: apmail-activemq-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 4BE2BD2DD for ; Fri, 21 Sep 2012 15:22:07 +0000 (UTC) Received: (qmail 78186 invoked by uid 500); 21 Sep 2012 15:22:06 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 78154 invoked by uid 500); 21 Sep 2012 15:22:06 -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 78146 invoked by uid 99); 21 Sep 2012 15:22:06 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 21 Sep 2012 15:22:06 +0000 X-ASF-Spam-Status: No, hits=0.6 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS,URI_HEX X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of gaurav.cs.sharma@gmail.com designates 209.85.160.43 as permitted sender) Received: from [209.85.160.43] (HELO mail-pb0-f43.google.com) (209.85.160.43) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 21 Sep 2012 15:21:58 +0000 Received: by pbbrq2 with SMTP id rq2so7451357pbb.2 for ; Fri, 21 Sep 2012 08:21:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:references:from:content-type:x-mailer:in-reply-to :message-id:date:to:content-transfer-encoding:mime-version; bh=kwZHDbI+ZeeL/NixV+cD2PERCpApbOn6LmFIJWmou7c=; b=KEGMAwUrox2w+jtJPCfqxYUUqO2vJGwlDmp9fEmgX7Wsz/311zKWGoUeYKhZaEAXnE /QiU7hJ6ZlYYwCwXgbSDGJTMyBKxZRXwAakrTSROdJUgam2ITDCz+NtzN12GMD3NBvQL 0wmZYnAthy9h441u3cPTIdxBncNQ77MpbFRn3k4LI5ii0mNBLkL9ehWfIEu4GKNCxsew bbqee0p+y4diO2jv1GQvrnmW1VdL2MWDuo26qyfvPISqGF5njlhh19jmDY2pDK04bQKc hLKwA0a4jQzimv24Y2N116L/EQ+cuoFpI+4UZlnf8x+zjVvA71gjSfFe3Vy0cwCxYkvI gXbA== Received: by 10.68.136.67 with SMTP id py3mr16230737pbb.156.1348240897269; Fri, 21 Sep 2012 08:21:37 -0700 (PDT) Received: from [192.168.2.3] (c-50-131-91-5.hsd1.ca.comcast.net. [50.131.91.5]) by mx.google.com with ESMTPS id b10sm4271796pav.17.2012.09.21.08.21.36 (version=SSLv3 cipher=OTHER); Fri, 21 Sep 2012 08:21:36 -0700 (PDT) Subject: Re: ActiveMQ Broker Scheduler unable to create new native thread References: <1348209293639-4656787.post@n4.nabble.com> From: Gaurav Sharma Content-Type: text/plain; charset=us-ascii X-Mailer: iPhone Mail (10A403) In-Reply-To: <1348209293639-4656787.post@n4.nabble.com> Message-Id: Date: Fri, 21 Sep 2012 08:21:36 -0700 To: "users@activemq.apache.org" Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (1.0) How much heap have we given to the broker and what else is running on the sa= me machine? Also, just fire up jconsole, attach to the process and watch all= ocations, threads and cpu - should give a clue. v5.6 is the current release,= so, upgrade if possible. On Sep 20, 2012, at 23:34, jockeyyan wrote: > Hi: >=20 > I am using ActiveMQ 5.4.3 to make some loading test. I created one produce= r, > one broker and one consumer with Spring JAX-WS config. The producer invoke= > the functions to send messages to broker continuously and the consumer jus= t > receive and echo. > Everything is OK at beginning. After invoke many times(about 2000 to 3000)= , > the broker is crashed and display the following error message, Does anyone= > could help me fingure out what the matter of the broker is? >=20 > --------------------------------------------------------------------------= ------------------------ > Exception in thread "ActiveMQ Broker[localhost] Scheduler" > java.lang.OutOfMemory > Error: unable to create new native thread > at java.lang.Thread.start0(Native Method) > at java.lang.Thread.start(Thread.java:640) > at > java.util.concurrent.ThreadPoolExecutor.addIfUnderMaximumPoolSize(Thr > eadPoolExecutor.java:727) > at > java.util.concurrent.ThreadPoolExecutor.execute(ThreadPoolExecutor.ja > va:657) > at > org.apache.activemq.thread.PooledTaskRunner.wakeup(PooledTaskRunner.j > ava:76) > at > org.apache.activemq.broker.region.Queue.asyncWakeup(Queue.java:1637) > at > org.apache.activemq.broker.region.Queue.expireMessages(Queue.java:773 > ) > at org.apache.activemq.broker.region.Queue.access$100(Queue.java:83= ) > at org.apache.activemq.broker.region.Queue$2.run(Queue.java:123) > at > org.apache.activemq.thread.SchedulerTimerTask.run(SchedulerTimerTask. > java:33) > at java.util.TimerThread.mainLoop(Timer.java:512) > at java.util.TimerThread.run(Timer.java:462) > --------------------------------------------------------------------------= ------------------------ >=20 > The config of my consumer as following: > --------------------------------------------------------------------------= ------------------------ > class=3D"org.springframework.jms.connection.CachingConnectionFactory"> > > > = > > > > >=20 > p:connectionFactory-ref=3D"jmsConnectionFactory" > p:targetDestination=3D"test.queue" > /> >=20 > =20 > id=3D"CustomerServiceHTTP" address=3D"jms://" > implementor=3D"com.example.customerservice.server.CustomerServiceIm= pl"> > > > p:jmsConfig-ref=3D"jmsConfig" /> > > > --------------------------------------------------------------------------= ------------------------ >=20 > The config of my producer as following: > --------------------------------------------------------------------------= ------------------------ > class=3D"org.springframework.jms.connection.SingleConnectionFactory"> > > > = > > > >=20 > p:connectionFactory-ref=3D"jmsConnectionFactory" > p:targetDestination=3D"test.queue" > /> >=20 > address=3D"jms://"=20 > serviceClass=3D"com.example.customerservice.CustomerService"> > > > p:jmsConfig-ref=3D"jmsConfig" /> > > > --------------------------------------------------------------------------= ------------------------ >=20 > Jockey Yan >=20 >=20 >=20 >=20 > -- > View this message in context: http://activemq.2283324.n4.nabble.com/Active= MQ-Broker-Scheduler-unable-to-create-new-native-thread-tp4656787.html > Sent from the ActiveMQ - User mailing list archive at Nabble.com.