Return-Path: Delivered-To: apmail-activemq-users-archive@www.apache.org Received: (qmail 64444 invoked from network); 24 Mar 2011 15:12:17 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 24 Mar 2011 15:12:17 -0000 Received: (qmail 50573 invoked by uid 500); 24 Mar 2011 15:12:17 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 50468 invoked by uid 500); 24 Mar 2011 15:12:17 -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 50446 invoked by uid 99); 24 Mar 2011 15:12:16 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 24 Mar 2011 15:12:16 +0000 X-ASF-Spam-Status: No, hits=2.8 required=5.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of jelevy@gmail.com designates 74.125.82.171 as permitted sender) Received: from [74.125.82.171] (HELO mail-wy0-f171.google.com) (74.125.82.171) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 24 Mar 2011 15:12:09 +0000 Received: by wyb32 with SMTP id 32so43357wyb.2 for ; Thu, 24 Mar 2011 08:11:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type; bh=4pwdi9vzAmiVutFQJ2fto4LkwtFKrCn/QlpSeGhulvE=; b=UShHJo9/XZmVGERxNxWjNnab73YKfP2oo6Dec254mFBEpx0CCEBURMhzCPAeBu5Iq0 RPyX5uuEFEzq8DC9suaXPVZ4wZQU9IqSG/JUn5FcuZczR0Sq5Hc7CNlciB+kJrGBJWqb 7N4lubWCm0c2Awcuj9GU9rocCYRHOfW7kDIlc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; b=GfVbF0HuSSPu81QgIPAZ2XzSrxqZYe+hg6CQnfk+0o/udYdbRmjpmmX6Gy3K9QVsAa qbraVsaNVS+mpYYgPaOLB+g8UVYIb3Rdz9bSWQ2/G2OQgFotlPzHdpCLBWadnm7ako1g WVhmjFLReIq2oJhU1xPctBaexXJxXAl+a23bE= Received: by 10.227.7.87 with SMTP id c23mr7680260wbc.108.1300979509276; Thu, 24 Mar 2011 08:11:49 -0700 (PDT) MIME-Version: 1.0 Received: by 10.227.137.129 with HTTP; Thu, 24 Mar 2011 08:11:29 -0700 (PDT) In-Reply-To: <1300968510405-3402303.post@n4.nabble.com> References: <1300968510405-3402303.post@n4.nabble.com> From: Jeremy Levy Date: Thu, 24 Mar 2011 11:11:29 -0400 Message-ID: Subject: Re: OutOfMemoryError: unable to create new native thread To: users@activemq.apache.org Cc: Laures Content-Type: multipart/alternative; boundary=0022159748b282af4a049f3be554 X-Virus-Checked: Checked by ClamAV on apache.org --0022159748b282af4a049f3be554 Content-Type: text/plain; charset=ISO-8859-1 *java.lang.OutOfMemoryError: unable to create new native thread* Generally means that there isn't enough free memory for the OS to create a new thread. I would suggest freeing up memory on the machine or REDUCING the heap size of the JVM. J On Thu, Mar 24, 2011 at 8:08 AM, Laures wrote: > Hi, > > I'm currently load testing the native REST Api of activemq on our hardware. > I'm using pylot to generate several users. > > Some time into the test i start to get: > > WARN | Error for /rest/message/FOO/BAR > java.lang.OutOfMemoryError: unable to create new native thread > at java.lang.Thread.start0(Native Method) > at java.lang.Thread.start(Thread.java:640) > at > > org.apache.activemq.thread.TaskRunnerFactory.execute(TaskRunnerFactory.java:92) > at > > org.apache.activemq.thread.TaskRunnerFactory.execute(TaskRunnerFactory.java:85) > at > > org.apache.activemq.broker.TransportConnector$1.onAccept(TransportConnector.java:211) > at > > org.apache.activemq.transport.vm.VMTransportServer.connect(VMTransportServer.java:91) > at > > org.apache.activemq.transport.vm.VMTransportFactory.doCompositeConnect(VMTransportFactory.java:145) > at > > org.apache.activemq.transport.vm.VMTransportFactory.doConnect(VMTransportFactory.java:53) > at > > org.apache.activemq.transport.TransportFactory.doConnect(TransportFactory.java:51) > at > > org.apache.activemq.transport.TransportFactory.connect(TransportFactory.java:80) > at > > org.apache.activemq.ActiveMQConnectionFactory.createTransport(ActiveMQConnectionFactory.java:243) > at > > org.apache.activemq.ActiveMQConnectionFactory.createActiveMQConnection(ActiveMQConnectionFactory.java:258) > at > > org.apache.activemq.ActiveMQConnectionFactory.createActiveMQConnection(ActiveMQConnectionFactory.java:230) > at > > org.apache.activemq.ActiveMQConnectionFactory.createConnection(ActiveMQConnectionFactory.java:178) > at > org.apache.activemq.web.WebClient.getConnection(WebClient.java:246) > at > org.apache.activemq.web.WebClient.createSession(WebClient.java:348) > at org.apache.activemq.web.WebClient.getSession(WebClient.java:239) > at > > org.apache.activemq.web.MessageServletSupport.getDestination(MessageServletSupport.java:319) > at > > org.apache.activemq.web.MessageServletSupport.getDestination(MessageServletSupport.java:267) > at > org.apache.activemq.web.MessageServlet.doPost(MessageServlet.java:110) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:713) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:806) > at > org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:527) > at > > org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1216) > at > org.apache.activemq.web.SessionFilter.doFilter(SessionFilter.java:45) > at > > org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1187) > at > org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:421) > at > > org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119) > at > org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:493) > at > > org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:225) > at > > org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:930) > at > org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:358) > at > > org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:183) > at > > org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:866) > at > > org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117) > at > > org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:126) > at > org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:456) > at > > org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:126) > at > > org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:113) > at org.eclipse.jetty.server.Server.handle(Server.java:351) > at > > org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:594) > at > > org.eclipse.jetty.server.HttpConnection$RequestHandler.content(HttpConnection.java:1059) > at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:764) > at > org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:217) > at > org.eclipse.jetty.server.HttpConnection.handle(HttpConnection.java:424) > at > > org.eclipse.jetty.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:506) > at > > org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:436) > at java.lang.Thread.run(Thread.java:662) > > What causes the activemq to generate several thousand threads for my few > users? > > I allready tried to use dedicatedTaskRunner=false in my broker conf. There > was no effect. > > Greetings, > Alexander > > -- > View this message in context: > http://activemq.2283324.n4.nabble.com/OutOfMemoryError-unable-to-create-new-native-thread-tp3402303p3402303.html > Sent from the ActiveMQ - User mailing list archive at Nabble.com. > -- Jeremy Levy --0022159748b282af4a049f3be554--