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 78C4B10F99 for ; Tue, 11 Feb 2014 17:01:20 +0000 (UTC) Received: (qmail 71759 invoked by uid 500); 11 Feb 2014 17:01:19 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 71724 invoked by uid 500); 11 Feb 2014 17:01:19 -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 Delivered-To: moderator for users@activemq.apache.org Received: (qmail 54879 invoked by uid 99); 11 Feb 2014 15:15:23 -0000 X-ASF-Spam-Status: No, hits=1.6 required=5.0 tests=FREEMAIL_REPLY,RCVD_IN_DNSWL_LOW,SPF_PASS,URI_HEX X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of rmannibucau@gmail.com designates 209.85.216.170 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; bh=38tB5yLMl+QmkZ2RvlFHeNOI2LFskfo0rgydSP1UCOU=; b=jCg05r4XsePjnVAWfmzVsl2zNapGZ4nIjP6dzNVeW/wNe3UBTkZ+YkhHRtP9zZrX5U p2EmH6iSiLq3jGZoxJlRyISQ8gACLOU/J6GvFOlQtngqzy8xoHTIqo82QH2H5/wACH9B jqYF2/HcDyyaiLrHkawR+QKb3tziFR4ziK/7mb4jhsEw91elJXdA9Xad2AMLTWnXyj/s MufInpEUMtSdHGPtO3wRLAbMSIJ5N4k2EKvXhFfrztA9/gtu9Bx9jxUPlqksH8PzEEJy OVP7O+rzqXYhqCl2LpQ7uFqc6J3k3muOmANBv4GSyC+uUtLTuV4czJpgUTrt+gSedIqN 6/6w== X-Received: by 10.224.53.198 with SMTP id n6mr57789990qag.41.1392131695213; Tue, 11 Feb 2014 07:14:55 -0800 (PST) MIME-Version: 1.0 In-Reply-To: References: From: Romain Manni-Bucau Date: Tue, 11 Feb 2014 16:14:35 +0100 Message-ID: Subject: Re: More than 10 consumers To: "users@tomee.apache.org" Cc: users@activemq.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org I think it is linked, in all case once you get a complete thread stack it should be quite obvious (maybe use gist to share it) Romain Manni-Bucau Twitter: @rmannibucau Blog: http://rmannibucau.wordpress.com/ LinkedIn: http://fr.linkedin.com/in/rmannibucau Github: https://github.com/rmannibucau 2014-02-11 16:09 GMT+01:00 Leonardo K. Shikida : > this is for producers, the bottleneck is in the consumers I guess > > [] > > Leo > > > On Tue, Feb 11, 2014 at 1:05 PM, Romain Manni-Bucau > wrote: > >> @Singleton >> @Lock(LockType.WRITE) ??? <- this is a bottlenck >> >> PS: i dont know if that's my gmail but i dont have the stacks, justt >> the thread names >> Romain Manni-Bucau >> Twitter: @rmannibucau >> Blog: http://rmannibucau.wordpress.com/ >> LinkedIn: http://fr.linkedin.com/in/rmannibucau >> Github: https://github.com/rmannibucau >> >> >> >> 2014-02-11 15:26 GMT+01:00 Leonardo K. Shikida : >> > Hi >> > >> > I really don't know where is the bottleneck. >> > >> > I've created a new project from the scratch to try to isolate the >> > variables. >> > >> > Now I have something as simple as >> > >> > producer: >> > >> > public void createTasks() throws JMSException { >> > for(int i=3D0;i<1000;i++){ >> > if (i%100 =3D=3D 0){ >> > System.out.println(i); >> > } >> > MyEntity my =3D new MyEntity("xyz"+i); >> > my =3D this.baseService.getMyEntityDAO().addAndFlush(my); >> > jmsService.enqueue(my); >> > } >> > } >> > >> > >> > jms >> > >> > @Singleton >> > @Lock(LockType.WRITE) >> > public class JmsService implements Serializable{ >> > public void enqueue(MyEntity target) throws JMSException{ >> > Connection connection =3D null; >> > Session session =3D null; >> > try { >> > ConnectionFactory connectionFactory =3D this.connectionFac= tory; >> > connection =3D connectionFactory.createConnection(); >> > connection.start(); >> > >> > session =3D connection.createSession(false, >> > Session.AUTO_ACKNOWLEDGE); >> > Queue queue =3D this.driverJobQueue; >> > MessageProducer producer =3D session.createProducer(queue)= ; >> > >> > Message message =3D session.createMessage(); >> > message.setLongProperty("id",target.getId()); >> > message.setStringProperty("type", "xyz"); >> > producer.send(message,DeliveryMode.PERSISTENT,1,0); >> > } finally { >> > // Clean up >> > if (session !=3D null){ >> > session.close(); >> > } >> > >> > if (connection !=3D null){ >> > connection.close(); >> > } >> > } >> > >> > } >> > >> > consumer >> > >> > import javax.annotation.PostConstruct; >> > import javax.ejb.ActivationConfigProperty; >> > import javax.ejb.EJB; >> > import javax.ejb.MessageDriven; >> > import javax.inject.Inject; >> > import javax.jms.Message; >> > import javax.jms.MessageListener; >> > import javax.persistence.EntityManager; >> > import javax.persistence.PersistenceContext; >> > >> > @MessageDriven(activationConfig =3D { >> > @ActivationConfigProperty( >> > propertyName =3D "destinationType", >> > propertyValue =3D "javax.jms.Queue"), >> > @ActivationConfigProperty( >> > propertyName =3D "destination", >> > propertyValue =3D "DriverJobQueue"), >> > @ActivationConfigProperty( >> > propertyName =3D "messageSelector", >> > propertyValue =3D "type =3D 'xyz'"), >> > @ActivationConfigProperty( >> > propertyName =3D "acknowledgeMode", >> > propertyValue =3D "Auto-acknowledge"), >> > @ActivationConfigProperty( >> > propertyName =3D "maxSessions", >> > propertyValue =3D "30"), >> > @ActivationConfigProperty( >> > propertyName =3D "maxMessagesPerBatch", >> > propertyValue =3D "30"), >> > @ActivationConfigProperty( >> > propertyName =3D "maxMessagesPerSessions", >> > propertyValue =3D "30") }) >> > >> > public class MyWorker implements MessageListener { >> > @Override >> > public void onMessage(Message msg) { >> > MyEntity entity =3D null; >> > Long id =3D null; >> > try { >> > id =3D msg.getLongProperty("id"); >> > >> > if (entity !=3D null) { >> > System.out.println(id); >> > }else{ >> > System.out.println("ops"); >> > } >> > >> > System.out.println(this+" is processing "+entity); >> > >> > } catch (Throwable e) { >> > e.printStackTrace(); >> > } >> > >> > try { >> > Thread.sleep(10000); >> > } catch (InterruptedException e) { >> > e.printStackTrace(); >> > } >> > >> > System.out.println(this+" finished "+entity); >> > >> > } >> > } >> > >> > tomee.xml >> > >> > > > type=3D"ActiveMQResourceAdapter"> >> > BrokerXmlConfig =3D xbean:file:/pathto/activemq.xml >> > ServerUrl =3D tcp://0.0.0.0:61616 >> > threadPoolSize 30 <<<<<<< does that really works? >> > >> > >> > >> > ResourceAdapter =3D Default JMS Resource Adapter >> > >> > >> > >> > PoolMaxSize 30 >> > >> > >> > >> > PoolSize 30 >> > StrictPooling true >> > >> > >> > >> > InstanceLimit 30 >> > >> > >> > >> > PoolSize 30 >> > >> > >> > activemq.xml >> > >> > >> > > > http://activemq.apache.org/schema/core" xmlns:xsi=3D" >> > http://www.w3.org/2001/XMLSchema-instance" >> > xsi:schemaLocation=3D"http://www.springframework.org/schema/beans >> > http://www.springframework.org/schema/beans/spring-beans.xsd >> > http://activemq.apache.org/schema/core >> > http://activemq.apache.org/schema/core/activemq-core.xsd"> >> > >> > > > brokerName=3D"localhost" dataDirectory=3D"${activemq.data}"> >> > >> > >> > >> > " producerFlowControl=3D"tr= ue"> >> > >> > > > limit=3D"1000" /> >> > >> > >> > " producerFlowControl=3D"tr= ue" >> > memoryLimit=3D"1mb"> >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > > > destroy-method=3D"close"> >> > > value=3D"oracle.jdbc.OracleDriver" /> >> > > /> >> > >> > >> > >> > >> > >> > >> > >> > >> > kill -3 on catalina gives me >> > >> > [leoks@oc7612866413 ~]$ grep prio 2.txt | sort >> > "ActiveMQ Broker[localhost] Scheduler" daemon prio=3D10 >> > tid=3D0x00007fa8fcea3000 nid=3D0x411e in Object.wait() [0x00007fa8f0d7= 8000] >> > "ActiveMQ BrokerService[localhost] Task-1" daemon prio=3D10 >> > tid=3D0x00007fa88c041800 nid=3D0x4171 waiting on condition >> [0x00007fa8e8217000] >> > "ActiveMQ BrokerService[localhost] Task-2" daemon prio=3D10 >> > tid=3D0x00007fa89c5a8800 nid=3D0x4175 waiting on condition >> [0x00007fa873dfc000] >> > "ActiveMQ BrokerService[localhost] Task-3" daemon prio=3D10 >> > tid=3D0x00007fa874020000 nid=3D0x42b5 waiting on condition >> [0x00007fa8f107b000] >> > "ActiveMQ InactivityMonitor ReadCheckTimer" daemon prio=3D10 >> > tid=3D0x00007fa8a003d800 nid=3D0x4173 in Object.wait() [0x00007fa873ff= e000] >> > "ActiveMQ InactivityMonitor Worker" daemon prio=3D10 tid=3D0x00007fa88= c05a800 >> > nid=3D0x41b3 waiting on condition [0x00007fa8e891e000] >> > "ActiveMQ InactivityMonitor Worker" daemon prio=3D10 tid=3D0x00007fa88= c05d000 >> > nid=3D0x4220 waiting on condition [0x00007fa8f117c000] >> > "ActiveMQ InactivityMonitor WriteCheckTimer" daemon prio=3D10 >> > tid=3D0x00007fa8a003e800 nid=3D0x4174 in Object.wait() [0x00007fa873ef= d000] >> > "ActiveMQ JDBC PA Scheduled Task" daemon prio=3D10 tid=3D0x00007fa8780= 03800 >> > nid=3D0x413d waiting on condition [0x00007fa8f0772000] >> > "ActiveMQ JDBC PA Scheduled Task" daemon prio=3D10 tid=3D0x00007fa8940= 3a000 >> > nid=3D0x41bc waiting on condition [0x00007fa872bea000] >> > "ActiveMQ JDBC PA Scheduled Task" daemon prio=3D10 tid=3D0x00007fa8a00= 41800 >> > nid=3D0x4205 waiting on condition [0x00007fa8728e7000] >> > "ActiveMQ JDBC PA Scheduled Task" daemon prio=3D10 tid=3D0x00007fa8fcf= 12000 >> > nid=3D0x4137 waiting on condition [0x00007fa8f0974000] >> > "ActiveMQ JDBC PA Scheduled Task" daemon prio=3D10 tid=3D0x00007fa8fcf= 15800 >> > nid=3D0x4138 waiting on condition [0x00007fa8f0671000] >> > "ActiveMQ Transport Server: tcp://0.0.0.0:61616" daemon prio=3D10 >> > tid=3D0x00007fa8fc7b2000 nid=3D0x4143 runnable [0x00007fa8f137e000] >> > "ActiveMQ Transport Server Thread Handler: tcp://0.0.0.0:61616" daemon >> > prio=3D10 tid=3D0x00007fa8fc7b1000 nid=3D0x4142 waiting on condition >> > [0x00007fa8f127d000] >> > "ActiveMQ Transport: tcp:///127.0.0.1:53438@61616" daemon prio=3D10 >> > tid=3D0x00007fa89c5a7800 nid=3D0x4172 runnable [0x00007fa8e8116000] >> > "ActiveMQ Transport: tcp:///127.0.0.1:53468@61616" daemon prio=3D10 >> > tid=3D0x00007fa87400f000 nid=3D0x41fd runnable [0x00007fa8729e8000] >> > "ActiveMQ Transport: tcp://oc7612866413.ibm.com/127.0.0.1:61616@53438" >> > prio=3D10 tid=3D0x00007fa88c035800 nid=3D0x4170 runnable [0x00007fa8e8= 51a000] >> > "ActiveMQ Transport: tcp://oc7612866413.ibm.com/127.0.0.1:61616@53468" >> > prio=3D10 tid=3D0x00007fa89c50b800 nid=3D0x41fc runnable [0x00007fa8e8= 81d000] >> > "ajp-bio-8009-Acceptor-0" daemon prio=3D10 tid=3D0x00007fa8fc13a000 >> nid=3D0x4188 >> > runnable [0x00007fa8736f5000] >> > "ajp-bio-8009-AsyncTimeout" daemon prio=3D10 tid=3D0x00007fa8fc13c000 >> > nid=3D0x4189 waiting on condition [0x00007fa8735f4000] >> > "Attach Listener" daemon prio=3D10 tid=3D0x00007fa8d0001000 nid=3D0x41= 5b >> runnable >> > [0x0000000000000000] >> > "C2 CompilerThread0" daemon prio=3D10 tid=3D0x00007fa8fc0a3800 nid=3D0= x40f6 >> > waiting on condition [0x0000000000000000] >> > "C2 CompilerThread1" daemon prio=3D10 tid=3D0x00007fa8fc0a6800 nid=3D0= x40f7 >> > waiting on condition [0x0000000000000000] >> > "ContainerBackgroundProcessor[StandardEngine[Catalina]]" daemon prio= =3D10 >> > tid=3D0x00007fa8fc853000 nid=3D0x4182 waiting on condition >> [0x00007fa873af9000] >> > "Default JMS Resource Adapter-worker- - 10" daemon prio=3D10 >> > tid=3D0x00007fa8a00a4800 nid=3D0x42c3 waiting on condition >> [0x00007fa871fdd000] >> > "Default JMS Resource Adapter-worker- - 11" daemon prio=3D10 >> > tid=3D0x00007fa8a00a6000 nid=3D0x42c4 waiting on condition >> [0x00007fa871edc000] >> > "Default JMS Resource Adapter-worker- - 1" daemon prio=3D10 >> > tid=3D0x00007fa89c597800 nid=3D0x416e waiting on condition >> [0x00007fa8e8419000] >> > "Default JMS Resource Adapter-worker- - 2" daemon prio=3D10 >> > tid=3D0x00007fa8a005e000 nid=3D0x42b7 waiting on condition >> [0x00007fa8727e5000] >> > "Default JMS Resource Adapter-worker- - 3" daemon prio=3D10 >> > tid=3D0x00007fa8a005f000 nid=3D0x42b8 waiting on condition >> [0x00007fa8726e4000] >> > "Default JMS Resource Adapter-worker- - 4" daemon prio=3D10 >> > tid=3D0x00007fa8a0063800 nid=3D0x42b9 waiting on condition >> [0x00007fa8725e3000] >> > "Default JMS Resource Adapter-worker- - 5" daemon prio=3D10 >> > tid=3D0x00007fa8a0065800 nid=3D0x42ba waiting on condition >> [0x00007fa8724e2000] >> > "Default JMS Resource Adapter-worker- - 6" daemon prio=3D10 >> > tid=3D0x00007fa8a0069000 nid=3D0x42bb waiting on condition >> [0x00007fa8723e1000] >> > "Default JMS Resource Adapter-worker- - 7" daemon prio=3D10 >> > tid=3D0x00007fa8a0067800 nid=3D0x42bc waiting on condition >> [0x00007fa8722e0000] >> > "Default JMS Resource Adapter-worker- - 8" daemon prio=3D10 >> > tid=3D0x00007fa8a0086800 nid=3D0x42be waiting on condition >> [0x00007fa8721df000] >> > "Default JMS Resource Adapter-worker- - 9" daemon prio=3D10 >> > tid=3D0x00007fa8a00a1800 nid=3D0x42c2 waiting on condition >> [0x00007fa8720de000] >> > "Finalizer" daemon prio=3D10 tid=3D0x00007fa8fc072800 nid=3D0x40eb in >> > Object.wait() [0x00007fa8f22d1000] >> > "GC Daemon" daemon prio=3D10 tid=3D0x00007fa8fc9a2000 nid=3D0x4103 in >> > Object.wait() [0x00007fa8f158a000] >> > "GC task thread#0 (ParallelGC)" prio=3D10 tid=3D0x00007fa8fc021800 nid= =3D0x40e5 >> > runnable >> > "GC task thread#1 (ParallelGC)" prio=3D10 tid=3D0x00007fa8fc023800 nid= =3D0x40e6 >> > runnable >> > "GC task thread#2 (ParallelGC)" prio=3D10 tid=3D0x00007fa8fc025800 nid= =3D0x40e7 >> > runnable >> > "GC task thread#3 (ParallelGC)" prio=3D10 tid=3D0x00007fa8fc027000 nid= =3D0x40e8 >> > runnable >> > "http-bio-8080-Acceptor-0" daemon prio=3D10 tid=3D0x00007fa8fc853800 >> nid=3D0x4183 >> > runnable [0x00007fa8739f8000] >> > "http-bio-8080-AsyncTimeout" daemon prio=3D10 tid=3D0x00007fa8fc855800 >> > nid=3D0x4184 waiting on condition [0x00007fa873bfa000] >> > "http-bio-8080-exec-10" daemon prio=3D10 tid=3D0x00007fa874011800 nid= =3D0x419c >> > waiting on condition [0x00007fa872ceb000] >> > "http-bio-8080-exec-1" daemon prio=3D10 tid=3D0x00007fa88c054800 nid= =3D0x4185 >> > waiting on condition [0x00007fa873cfb000] >> > "http-bio-8080-exec-2" daemon prio=3D10 tid=3D0x00007fa89c755000 nid= =3D0x418a >> > waiting on condition [0x00007fa8734f3000] >> > "http-bio-8080-exec-3" daemon prio=3D10 tid=3D0x00007fa88c055800 nid= =3D0x4194 >> > waiting on condition [0x00007fa8733f2000] >> > "http-bio-8080-exec-4" daemon prio=3D10 tid=3D0x00007fa89c8ea000 nid= =3D0x4195 >> > waiting on condition [0x00007fa8732f1000] >> > "http-bio-8080-exec-5" daemon prio=3D10 tid=3D0x00007fa88c056000 nid= =3D0x4196 >> > waiting on condition [0x00007fa8731f0000] >> > "http-bio-8080-exec-6" daemon prio=3D10 tid=3D0x00007fa88c057800 nid= =3D0x4197 >> > waiting on condition [0x00007fa8730ef000] >> > "http-bio-8080-exec-7" daemon prio=3D10 tid=3D0x00007fa88c059000 nid= =3D0x4198 >> > waiting on condition [0x00007fa872fee000] >> > "http-bio-8080-exec-8" daemon prio=3D10 tid=3D0x00007fa89c8f6800 nid= =3D0x419a >> > waiting on condition [0x00007fa872eed000] >> > "http-bio-8080-exec-9" daemon prio=3D10 tid=3D0x00007fa874013000 nid= =3D0x419b >> > waiting on condition [0x00007fa872dec000] >> > "http-bio-8443-Acceptor-0" daemon prio=3D10 tid=3D0x00007fa8fc137000 >> nid=3D0x4186 >> > runnable [0x00007fa8738f7000] >> > "http-bio-8443-AsyncTimeout" daemon prio=3D10 tid=3D0x00007fa8fc138000 >> > nid=3D0x4187 waiting on condition [0x00007fa8737f6000] >> > "JDWP Command Reader" daemon prio=3D10 tid=3D0x00007fa8c4001000 nid=3D= 0x40f3 >> > runnable [0x0000000000000000] >> > "JDWP Event Helper Thread" daemon prio=3D10 tid=3D0x00007fa8fc0a1000 >> nid=3D0x40f2 >> > runnable [0x0000000000000000] >> > "JDWP Transport Listener: dt_socket" daemon prio=3D10 >> tid=3D0x00007fa8fc09d800 >> > nid=3D0x40ef runnable [0x0000000000000000] >> > "main" prio=3D10 tid=3D0x00007fa8fc00c000 nid=3D0x40e4 runnable >> > [0x00007fa902425000] >> > "oracle.jdbc.driver.BlockSource.ThreadedCachingBlockSource.BlockReleas= er" >> > daemon prio=3D10 tid=3D0x00007fa8fce2f000 nid=3D0x4127 in Object.wait(= ) >> > [0x00007fa8f147f000] >> > "org.apache.openejb.pool.scheduler.1" daemon prio=3D10 >> tid=3D0x00007fa8fc902000 >> > nid=3D0x4147 waiting on condition [0x00007fa8f046f000] >> > "org.apache.openejb.pool.scheduler.2" daemon prio=3D10 >> tid=3D0x00007fa8fc903000 >> > nid=3D0x4148 waiting on condition [0x00007fa8f036e000] >> > "org.apache.openejb.pool.scheduler.3" daemon prio=3D10 >> tid=3D0x00007fa8fc904800 >> > nid=3D0x4149 waiting on condition [0x00007fa8f026d000] >> > "org.apache.openejb.pool.scheduler.4" daemon prio=3D10 >> tid=3D0x00007fa8fc906800 >> > nid=3D0x414a waiting on condition [0x00007fa8f016c000] >> > "org.apache.openejb.pool.scheduler.5" daemon prio=3D10 >> tid=3D0x00007fa89c5b0000 >> > nid=3D0x416f waiting on condition [0x00007fa8e8318000] >> > "PoolIdleReleaseTimer" daemon prio=3D10 tid=3D0x00007fa8fcc15800 nid= =3D0x4146 >> in >> > Object.wait() [0x00007fa8f0c77000] >> > "Reference Handler" daemon prio=3D10 tid=3D0x00007fa8fc06e800 nid=3D0x= 40ea in >> > Object.wait() [0x00007fa8f23d2000] >> > "RetryTimer" daemon prio=3D10 tid=3D0x00007fa8fcb39000 nid=3D0x411d in >> > Object.wait() [0x00007fa8f0b76000] >> > "RMI Reaper" prio=3D10 tid=3D0x00007fa8a4065800 nid=3D0x4122 in Object= .wait() >> > [0x00007fa8f0a75000] >> > "RMI RenewClean-[127.0.0.1:40595]" daemon prio=3D10 tid=3D0x00007fa8a0= 00b800 >> > nid=3D0x4125 in Object.wait() [0x00007fa8f0873000] >> > "RMI Scheduler(0)" daemon prio=3D10 tid=3D0x00007fa8a406f800 nid=3D0x4= 124 >> waiting >> > on condition [0x00007fa8f0e79000] >> > "RMI TCP Accept-0" daemon prio=3D10 tid=3D0x00007fa8a4064800 nid=3D0x4= 121 >> > runnable [0x00007fa8f0570000] >> > "RMI TCP Accept-1099" daemon prio=3D10 tid=3D0x00007fa8fcea7800 nid=3D= 0x411f >> > runnable [0x00007fa8f0f7a000] >> > "Service Thread" daemon prio=3D10 tid=3D0x00007fa8fc0a9000 nid=3D0x40f= 8 >> runnable >> > [0x0000000000000000] >> > "Signal Dispatcher" daemon prio=3D10 tid=3D0x00007fa8fc088800 nid=3D0x= 40ed >> > waiting on condition [0x0000000000000000] >> > "Thread-19" daemon prio=3D10 tid=3D0x00007fa89c178800 nid=3D0x414f run= nable >> > [0x00007fa8e871c000] >> > "Thread-23" daemon prio=3D10 tid=3D0x00007fa89c8a5800 nid=3D0x41e5 wai= ting on >> > condition [0x00007fa872ae9000] >> > "VM Periodic Task Thread" prio=3D10 tid=3D0x00007fa8fc0b3800 nid=3D0x4= 0f9 >> waiting >> > on condition >> > "VM Thread" prio=3D10 tid=3D0x00007fa8fc06c800 nid=3D0x40e9 runnable >> > >> > Oracle (should not affect actually, I guess, but I am including here >> > because JMS messages are persisted) >> > >> > SQL> show parameter session >> > >> > NAME TYPE VALUE >> > ------------------------------------ ----------- >> > ------------------------------ >> > java_max_sessionspace_size integer 0 >> > java_soft_sessionspace_limit integer 0 >> > license_max_sessions integer 0 >> > license_sessions_warning integer 0 >> > session_cached_cursors integer 50 >> > session_max_open_files integer 10 >> > sessions integer 324 <<<<<<<<<<< >> > shared_server_sessions integer >> > SQL> show parameter processes >> > >> > NAME TYPE VALUE >> > ------------------------------------ ----------- >> > ------------------------------ >> > aq_tm_processes integer 0 >> > db_writer_processes integer 1 >> > gcs_server_processes integer 0 >> > global_txn_processes integer 1 >> > job_queue_processes integer 0 >> > log_archive_max_processes integer 4 >> > processes integer 200 <<<<<<<<<< >> > >> > >> > Still getting 10 JMS workers and 10 simultaneous threads consuming the >> > messages. >> > >> > Don't know what else to try. >> > >> > How can I increase the number of workers? >> > >> > TIA >> > >> > [] >> > >> > Leo >> > >> > >> > [] >> > >> > Leo >> > >> > >> > On Mon, Feb 10, 2014 at 4:44 PM, Romain Manni-Bucau >> > wrote: >> > >> >> Yeah, another pool surely (db, stateless, other...) >> >> Le 10 f=E9vr. 2014 19:35, "Leonardo K. Shikida" a >> =E9crit >> >> : >> >> >> >> > I've set all pools to 100. The thread dump (if I understand it well= ) >> >> seems >> >> > to say that there are 99 threads waiting. >> >> > >> >> > Does it mean that the pool was set correctly but there's a bottlene= ck >> >> > somewhere? >> >> > >> >> > [] >> >> > >> >> > Leo >> >> > >> >> > [leoks@oc7612866413 ~]$ grep "Default JMS Resource Adapter" dump.tx= t >> >> > "Default JMS Resource Adapter-worker- - 99" daemon prio=3D10 >> >> > tid=3D0x00007f41946e3000 nid=3D0x2f00 waiting on condition >> >> [0x00007f414b4aa000] >> >> > "Default JMS Resource Adapter-worker- - 98" daemon prio=3D10 >> >> > tid=3D0x00007f41946e1000 nid=3D0x2ef8 waiting on condition >> >> [0x00007f41430d2000] >> >> > "Default JMS Resource Adapter-worker- - 97" daemon prio=3D10 >> >> > tid=3D0x00007f41946df000 nid=3D0x2ef3 waiting on condition >> >> [0x00007f41432d4000] >> >> > "Default JMS Resource Adapter-worker- - 96" daemon prio=3D10 >> >> > tid=3D0x00007f41946dd000 nid=3D0x2ef0 waiting on condition >> >> [0x00007f41433d5000] >> >> > "Default JMS Resource Adapter-worker- - 95" daemon prio=3D10 >> >> > tid=3D0x00007f41944a1000 nid=3D0x2ed9 waiting on condition >> >> [0x00007f41434d6000] >> >> > "Default JMS Resource Adapter-worker- - 94" daemon prio=3D10 >> >> > tid=3D0x00007f419449f000 nid=3D0x2ed8 waiting on condition >> >> [0x00007f41435d7000] >> >> > "Default JMS Resource Adapter-worker- - 93" daemon prio=3D10 >> >> > tid=3D0x00007f419449d000 nid=3D0x2ed0 waiting on condition >> >> [0x00007f41436d8000] >> >> > "Default JMS Resource Adapter-worker- - 92" daemon prio=3D10 >> >> > tid=3D0x00007f419449b000 nid=3D0x2ecf waiting on condition >> >> [0x00007f41437d9000] >> >> > "Default JMS Resource Adapter-worker- - 91" daemon prio=3D10 >> >> > tid=3D0x00007f4194b46000 nid=3D0x2ece waiting on condition >> >> [0x00007f41438da000] >> >> > "Default JMS Resource Adapter-worker- - 90" daemon prio=3D10 >> >> > tid=3D0x00007f4194b44000 nid=3D0x2ecd waiting on condition >> >> [0x00007f41439db000] >> >> > "Default JMS Resource Adapter-worker- - 89" daemon prio=3D10 >> >> > tid=3D0x00007f4194b42000 nid=3D0x2ecc waiting on condition >> >> [0x00007f4143adc000] >> >> > "Default JMS Resource Adapter-worker- - 88" daemon prio=3D10 >> >> > tid=3D0x00007f4194b40000 nid=3D0x2ecb waiting on condition >> >> [0x00007f4143bdd000] >> >> > "Default JMS Resource Adapter-worker- - 87" daemon prio=3D10 >> >> > tid=3D0x00007f4194112800 nid=3D0x2eca waiting on condition >> >> [0x00007f4143cde000] >> >> > "Default JMS Resource Adapter-worker- - 86" daemon prio=3D10 >> >> > tid=3D0x00007f4194110800 nid=3D0x2ec9 waiting on condition >> >> [0x00007f4143ddf000] >> >> > "Default JMS Resource Adapter-worker- - 85" daemon prio=3D10 >> >> > tid=3D0x00007f419410e800 nid=3D0x2ec8 waiting on condition >> >> [0x00007f4143ee0000] >> >> > "Default JMS Resource Adapter-worker- - 84" daemon prio=3D10 >> >> > tid=3D0x00007f419410c800 nid=3D0x2ec7 waiting on condition >> >> [0x00007f4143fe1000] >> >> > "Default JMS Resource Adapter-worker- - 83" daemon prio=3D10 >> >> > tid=3D0x00007f41944d8800 nid=3D0x2ec6 waiting on condition >> >> [0x00007f41440e2000] >> >> > "Default JMS Resource Adapter-worker- - 82" daemon prio=3D10 >> >> > tid=3D0x00007f41944d6000 nid=3D0x2ec5 waiting on condition >> >> [0x00007f41441e3000] >> >> > "Default JMS Resource Adapter-worker- - 81" daemon prio=3D10 >> >> > tid=3D0x00007f41944d4000 nid=3D0x2ec4 waiting on condition >> >> [0x00007f41442e4000] >> >> > "Default JMS Resource Adapter-worker- - 80" daemon prio=3D10 >> >> > tid=3D0x00007f41944d2800 nid=3D0x2ec3 waiting on condition >> >> [0x00007f41443e5000] >> >> > "Default JMS Resource Adapter-worker- - 79" daemon prio=3D10 >> >> > tid=3D0x00007f4194647800 nid=3D0x2ec1 waiting on condition >> >> [0x00007f41444e6000] >> >> > "Default JMS Resource Adapter-worker- - 78" daemon prio=3D10 >> >> > tid=3D0x00007f4194645800 nid=3D0x2ec0 waiting on condition >> >> [0x00007f41445e7000] >> >> > "Default JMS Resource Adapter-worker- - 77" daemon prio=3D10 >> >> > tid=3D0x00007f4194644000 nid=3D0x2ebe waiting on condition >> >> [0x00007f41446e8000] >> >> > "Default JMS Resource Adapter-worker- - 76" daemon prio=3D10 >> >> > tid=3D0x00007f4194642800 nid=3D0x2ebd waiting on condition >> >> [0x00007f41447e9000] >> >> > "Default JMS Resource Adapter-worker- - 75" daemon prio=3D10 >> >> > tid=3D0x00007f41943d8000 nid=3D0x2eb3 waiting on condition >> >> [0x00007f41448ea000] >> >> > "Default JMS Resource Adapter-worker- - 74" daemon prio=3D10 >> >> > tid=3D0x00007f41943d6000 nid=3D0x2eb2 waiting on condition >> >> [0x00007f41449eb000] >> >> > "Default JMS Resource Adapter-worker- - 73" daemon prio=3D10 >> >> > tid=3D0x00007f41943d4000 nid=3D0x2eb1 waiting on condition >> >> [0x00007f4144aec000] >> >> > "Default JMS Resource Adapter-worker- - 72" daemon prio=3D10 >> >> > tid=3D0x00007f4194ea4000 nid=3D0x2eb0 waiting on condition >> >> [0x00007f4144bed000] >> >> > "Default JMS Resource Adapter-worker- - 71" daemon prio=3D10 >> >> > tid=3D0x00007f4194ea2000 nid=3D0x2eaf waiting on condition >> >> [0x00007f4144cee000] >> >> > "Default JMS Resource Adapter-worker- - 70" daemon prio=3D10 >> >> > tid=3D0x00007f4194e9f800 nid=3D0x2eae waiting on condition >> >> [0x00007f4144def000] >> >> > "Default JMS Resource Adapter-worker- - 69" daemon prio=3D10 >> >> > tid=3D0x00007f4194e9d800 nid=3D0x2ead waiting on condition >> >> [0x00007f4144ef0000] >> >> > "Default JMS Resource Adapter-worker- - 68" daemon prio=3D10 >> >> > tid=3D0x00007f419425f800 nid=3D0x2eac waiting on condition >> >> [0x00007f4144ff1000] >> >> > "Default JMS Resource Adapter-worker- - 67" daemon prio=3D10 >> >> > tid=3D0x00007f419425d800 nid=3D0x2eab waiting on condition >> >> [0x00007f41450f2000] >> >> > "Default JMS Resource Adapter-worker- - 66" daemon prio=3D10 >> >> > tid=3D0x00007f419425c000 nid=3D0x2eaa waiting on condition >> >> [0x00007f41451f3000] >> >> > "Default JMS Resource Adapter-worker- - 65" daemon prio=3D10 >> >> > tid=3D0x00007f419425a800 nid=3D0x2ea9 waiting on condition >> >> [0x00007f41452f4000] >> >> > "Default JMS Resource Adapter-worker- - 64" daemon prio=3D10 >> >> > tid=3D0x00007f4194259000 nid=3D0x2ea8 waiting on condition >> >> [0x00007f41453f5000] >> >> > "Default JMS Resource Adapter-worker- - 63" daemon prio=3D10 >> >> > tid=3D0x00007f419495b800 nid=3D0x2ea7 waiting on condition >> >> [0x00007f41454f6000] >> >> > "Default JMS Resource Adapter-worker- - 62" daemon prio=3D10 >> >> > tid=3D0x00007f4194959800 nid=3D0x2ea6 waiting on condition >> >> [0x00007f41455f7000] >> >> > "Default JMS Resource Adapter-worker- - 61" daemon prio=3D10 >> >> > tid=3D0x00007f4194957800 nid=3D0x2ea5 waiting on condition >> >> [0x00007f41456f8000] >> >> > "Default JMS Resource Adapter-worker- - 60" daemon prio=3D10 >> >> > tid=3D0x00007f41954b6800 nid=3D0x2ea4 waiting on condition >> >> [0x00007f41457f9000] >> >> > "Default JMS Resource Adapter-worker- - 59" daemon prio=3D10 >> >> > tid=3D0x00007f41954b4800 nid=3D0x2ea3 waiting on condition >> >> [0x00007f41458fa000] >> >> > "Default JMS Resource Adapter-worker- - 58" daemon prio=3D10 >> >> > tid=3D0x00007f41954b2800 nid=3D0x2ea2 waiting on condition >> >> [0x00007f41459fb000] >> >> > "Default JMS Resource Adapter-worker- - 57" daemon prio=3D10 >> >> > tid=3D0x00007f41954b0800 nid=3D0x2ea1 waiting on condition >> >> [0x00007f4145afc000] >> >> > "Default JMS Resource Adapter-worker- - 56" daemon prio=3D10 >> >> > tid=3D0x00007f4194ede000 nid=3D0x2ea0 waiting on condition >> >> [0x00007f4145bfd000] >> >> > "Default JMS Resource Adapter-worker- - 55" daemon prio=3D10 >> >> > tid=3D0x00007f4194edc000 nid=3D0x2e98 waiting on condition >> >> [0x00007f4145cfe000] >> >> > "Default JMS Resource Adapter-worker- - 54" daemon prio=3D10 >> >> > tid=3D0x00007f4194eda000 nid=3D0x2e97 waiting on condition >> >> [0x00007f4145dff000] >> >> > "Default JMS Resource Adapter-worker- - 53" daemon prio=3D10 >> >> > tid=3D0x00007f4194ed7800 nid=3D0x2e96 waiting on condition >> >> [0x00007f4145f00000] >> >> > "Default JMS Resource Adapter-worker- - 52" daemon prio=3D10 >> >> > tid=3D0x00007f4194399800 nid=3D0x2e95 waiting on condition >> >> [0x00007f4146001000] >> >> > "Default JMS Resource Adapter-worker- - 51" daemon prio=3D10 >> >> > tid=3D0x00007f4194398000 nid=3D0x2e94 waiting on condition >> >> [0x00007f4146102000] >> >> > "Default JMS Resource Adapter-worker- - 50" daemon prio=3D10 >> >> > tid=3D0x00007f4194396800 nid=3D0x2e8f waiting on condition >> >> [0x00007f4146203000] >> >> > "Default JMS Resource Adapter-worker- - 49" daemon prio=3D10 >> >> > tid=3D0x00007f4194394800 nid=3D0x2e8e waiting on condition >> >> [0x00007f4146304000] >> >> > "Default JMS Resource Adapter-worker- - 48" daemon prio=3D10 >> >> > tid=3D0x00007f4194392800 nid=3D0x2e8d waiting on condition >> >> [0x00007f4146405000] >> >> > "Default JMS Resource Adapter-worker- - 47" daemon prio=3D10 >> >> > tid=3D0x00007f4194ac1000 nid=3D0x2e8c waiting on condition >> >> [0x00007f4146506000] >> >> > "Default JMS Resource Adapter-worker- - 46" daemon prio=3D10 >> >> > tid=3D0x00007f4194abf000 nid=3D0x2e8b waiting on condition >> >> [0x00007f4146607000] >> >> > "Default JMS Resource Adapter-worker- - 45" daemon prio=3D10 >> >> > tid=3D0x00007f4194abd000 nid=3D0x2e8a waiting on condition >> >> [0x00007f4146708000] >> >> > "Default JMS Resource Adapter-worker- - 44" daemon prio=3D10 >> >> > tid=3D0x00007f4194abb000 nid=3D0x2e89 waiting on condition >> >> [0x00007f4146809000] >> >> > "Default JMS Resource Adapter-worker- - 43" daemon prio=3D10 >> >> > tid=3D0x00007f4194508800 nid=3D0x2e88 waiting on condition >> >> [0x00007f414690a000] >> >> > "Default JMS Resource Adapter-worker- - 42" daemon prio=3D10 >> >> > tid=3D0x00007f4194506800 nid=3D0x2e87 waiting on condition >> >> [0x00007f4146a0b000] >> >> > "Default JMS Resource Adapter-worker- - 41" daemon prio=3D10 >> >> > tid=3D0x00007f4194505000 nid=3D0x2e86 waiting on condition >> >> [0x00007f4146b0c000] >> >> > "Default JMS Resource Adapter-worker- - 40" daemon prio=3D10 >> >> > tid=3D0x00007f4194503800 nid=3D0x2e85 waiting on condition >> >> [0x00007f4146c0d000] >> >> > "Default JMS Resource Adapter-worker- - 39" daemon prio=3D10 >> >> > tid=3D0x00007f4194c86000 nid=3D0x2e84 waiting on condition >> >> [0x00007f4146d0e000] >> >> > "Default JMS Resource Adapter-worker- - 38" daemon prio=3D10 >> >> > tid=3D0x00007f4194c84800 nid=3D0x2e83 waiting on condition >> >> [0x00007f4146e0f000] >> >> > "Default JMS Resource Adapter-worker- - 37" daemon prio=3D10 >> >> > tid=3D0x00007f4194c83000 nid=3D0x2e7b waiting on condition >> >> [0x00007f4146f10000] >> >> > "Default JMS Resource Adapter-worker- - 36" daemon prio=3D10 >> >> > tid=3D0x00007f4194c81800 nid=3D0x2e7a waiting on condition >> >> [0x00007f4147011000] >> >> > "Default JMS Resource Adapter-worker- - 35" daemon prio=3D10 >> >> > tid=3D0x00007f4194c80000 nid=3D0x2e79 waiting on condition >> >> [0x00007f4147112000] >> >> > "Default JMS Resource Adapter-worker- - 34" daemon prio=3D10 >> >> > tid=3D0x00007f4194c7f800 nid=3D0x2e78 waiting on condition >> >> [0x00007f4147213000] >> >> > "Default JMS Resource Adapter-worker- - 33" daemon prio=3D10 >> >> > tid=3D0x00007f41940f0000 nid=3D0x2e77 waiting on condition >> >> [0x00007f4147314000] >> >> > "Default JMS Resource Adapter-worker- - 32" daemon prio=3D10 >> >> > tid=3D0x00007f41940ef000 nid=3D0x2e76 waiting on condition >> >> [0x00007f4147617000] >> >> > "Default JMS Resource Adapter-worker- - 31" daemon prio=3D10 >> >> > tid=3D0x00007f41940ed800 nid=3D0x2e75 waiting on condition >> >> [0x00007f4147415000] >> >> > "Default JMS Resource Adapter-worker- - 30" daemon prio=3D10 >> >> > tid=3D0x00007f41940ec000 nid=3D0x2e74 waiting on condition >> >> [0x00007f414803d000] >> >> > "Default JMS Resource Adapter-worker- - 29" daemon prio=3D10 >> >> > tid=3D0x00007f41940ea800 nid=3D0x2e73 waiting on condition >> >> [0x00007f4147a8d000] >> >> > "Default JMS Resource Adapter-worker- - 28" daemon prio=3D10 >> >> > tid=3D0x00007f4194c7b000 nid=3D0x2e72 waiting on condition >> >> [0x00007f414798c000] >> >> > "Default JMS Resource Adapter-worker- - 27" daemon prio=3D10 >> >> > tid=3D0x00007f4194c7a000 nid=3D0x2e70 waiting on condition >> >> [0x00007f4147e02000] >> >> > "Default JMS Resource Adapter-worker- - 26" daemon prio=3D10 >> >> > tid=3D0x00007f4194d75000 nid=3D0x2e6f waiting on condition >> >> [0x00007f4149187000] >> >> > "Default JMS Resource Adapter-worker- - 25" daemon prio=3D10 >> >> > tid=3D0x00007f41940c1800 nid=3D0x2e6e waiting on condition >> >> [0x00007f414877d000] >> >> > "Default JMS Resource Adapter-worker- - 24" daemon prio=3D10 >> >> > tid=3D0x00007f41943a0800 nid=3D0x2e6d waiting on condition >> >> [0x00007f414867c000] >> >> > "Default JMS Resource Adapter-worker- - 23" daemon prio=3D10 >> >> > tid=3D0x00007f4194975000 nid=3D0x2e6c waiting on condition >> >> [0x00007f414847a000] >> >> > "Default JMS Resource Adapter-worker- - 22" daemon prio=3D10 >> >> > tid=3D0x00007f419546d000 nid=3D0x2e6a waiting on condition >> >> [0x00007f414857b000] >> >> > "Default JMS Resource Adapter-worker- - 21" daemon prio=3D10 >> >> > tid=3D0x00007f4194440000 nid=3D0x2e62 waiting on condition >> >> [0x00007f4147cc8000] >> >> > "Default JMS Resource Adapter-worker- - 20" daemon prio=3D10 >> >> > tid=3D0x00007f4194163800 nid=3D0x2e60 waiting on condition >> >> [0x00007f4147bc7000] >> >> > "Default JMS Resource Adapter-worker- - 19" daemon prio=3D10 >> >> > tid=3D0x00007f4194455000 nid=3D0x2e5e waiting on condition >> >> [0x00007f414e3d9000] >> >> > "Default JMS Resource Adapter-worker- - 18" daemon prio=3D10 >> >> > tid=3D0x00007f419550a000 nid=3D0x2e5d waiting on condition >> >> [0x00007f414887e000] >> >> > "Default JMS Resource Adapter-worker- - 17" daemon prio=3D10 >> >> > tid=3D0x00007f4198008000 nid=3D0x18ae waiting on condition >> >> [0x00007f4148c82000] >> >> > "Default JMS Resource Adapter-worker- - 16" daemon prio=3D10 >> >> > tid=3D0x00007f418406b000 nid=3D0x18ad waiting on condition >> >> [0x00007f4148d83000] >> >> > "Default JMS Resource Adapter-worker- - 15" daemon prio=3D10 >> >> > tid=3D0x00007f41b403e000 nid=3D0x18ac waiting on condition >> >> [0x00007f4148e84000] >> >> > "Default JMS Resource Adapter-worker- - 14" daemon prio=3D10 >> >> > tid=3D0x00007f41600be000 nid=3D0x18ab waiting on condition >> >> [0x00007f41cc1e8000] >> >> > "Default JMS Resource Adapter-worker- - 13" daemon prio=3D10 >> >> > tid=3D0x00007f4194a0b800 nid=3D0x15d7 waiting on condition >> >> [0x00007f414c2b8000] >> >> > "Default JMS Resource Adapter-worker- - 12" daemon prio=3D10 >> >> > tid=3D0x00007f41943f3800 nid=3D0x15d5 waiting on condition >> >> [0x00007f414c3b9000] >> >> > "Default JMS Resource Adapter-worker- - 11" daemon prio=3D10 >> >> > tid=3D0x00007f41943f2800 nid=3D0x15d1 waiting on condition >> >> [0x00007f414c4ba000] >> >> > "Default JMS Resource Adapter-worker- - 10" daemon prio=3D10 >> >> > tid=3D0x00007f4194a0b000 nid=3D0x15cf in Object.wait() >> [0x00007f414c6bb000] >> >> > "Default JMS Resource Adapter-worker- - 9" daemon prio=3D10 >> >> > tid=3D0x00007f4194a0a800 nid=3D0x15ca waiting on condition >> >> [0x00007f414c5bb000] >> >> > "Default JMS Resource Adapter-worker- - 8" daemon prio=3D10 >> >> > tid=3D0x00007f4194136800 nid=3D0x15c7 waiting on condition >> >> [0x00007f414cac0000] >> >> > "Default JMS Resource Adapter-worker- - 7" daemon prio=3D10 >> >> > tid=3D0x00007f41941b9800 nid=3D0x15c5 waiting on condition >> >> [0x00007f414c8be000] >> >> > "Default JMS Resource Adapter-worker- - 6" daemon prio=3D10 >> >> > tid=3D0x00007f4194af7800 nid=3D0x15bf waiting on condition >> >> [0x00007f414cbc1000] >> >> > "Default JMS Resource Adapter-worker- - 5" daemon prio=3D10 >> >> > tid=3D0x00007f4194788800 nid=3D0x15bd waiting on condition >> >> [0x00007f414d2c8000] >> >> > "Default JMS Resource Adapter-worker- - 4" daemon prio=3D10 >> >> > tid=3D0x00007f4194788000 nid=3D0x15b9 waiting on condition >> >> [0x00007f414d0c6000] >> >> > "Default JMS Resource Adapter-worker- - 3" daemon prio=3D10 >> >> > tid=3D0x00007f415cb24800 nid=3D0x1567 waiting on condition >> >> [0x00007f414f4f3000] >> >> > "Default JMS Resource Adapter-worker- - 2" daemon prio=3D10 >> >> > tid=3D0x00007f415cb24000 nid=3D0x1566 waiting on condition >> >> [0x00007f414f3f2000] >> >> > "Default JMS Resource Adapter-worker- - 1" daemon prio=3D10 >> >> > tid=3D0x00007f415cb1f800 nid=3D0x1565 waiting on condition >> >> [0x00007f414f1f0000] >> >> > [leoks@oc7612866413 ~]$ grep "Default JMS Resource Adapter" dump.tx= t >> | >> >> wc >> >> > 99 1385 13352 >> >> > >> >> > >> >> > [] >> >> > >> >> > Leo >> >> > >> >> > >> >> > On Mon, Feb 10, 2014 at 4:19 PM, Romain Manni-Bucau >> >> > wrote: >> >> > >> >> > > do a thread dump during it >> >> > > Romain Manni-Bucau >> >> > > Twitter: @rmannibucau >> >> > > Blog: http://rmannibucau.wordpress.com/ >> >> > > LinkedIn: http://fr.linkedin.com/in/rmannibucau >> >> > > Github: https://github.com/rmannibucau >> >> > > >> >> > > >> >> > > >> >> > > 2014-02-10 18:54 GMT+01:00 Leonardo K. Shikida : >> >> > > > not sure how do I check that >> >> > > > >> >> > > > I only have one producer that enqueues like 10K messages at onc= e >> and >> >> > then >> >> > > > consumers start to consume (each message is processed in 2-3 >> minutes >> >> by >> >> > > the >> >> > > > MDB) >> >> > > > >> >> > > > sometimes it reaches 20 consumers, but usually it stabilizes in= 10 >> >> > > > consumers (everytime one MDB is consuming, I set a flag in the = db) >> >> > > > >> >> > > > >> >> > > > >> >> > > > [] >> >> > > > >> >> > > > Leo >> >> > > > >> >> > > > >> >> > > > On Mon, Feb 10, 2014 at 3:45 PM, Romain Manni-Bucau >> >> > > > wrote: >> >> > > > >> >> > > >> Seems ok. Are your threads waiting for amq? >> >> > > >> Le 10 f=E9vr. 2014 18:15, "Leonardo K. Shikida" >> a >> >> > > =E9crit >> >> > > >> : >> >> > > >> >> >> > > >> > My activemq is this. Limits look pretty high for me. >> >> > > >> > >> >> > > >> > >> >> > > >> > > >> > > >> xmlns:amq=3D" >> >> > > >> > http://activemq.apache.org/schema/core" xmlns:xsi=3D" >> >> > > >> > http://www.w3.org/2001/XMLSchema-instance" >> >> > > >> > xsi:schemaLocation=3D" >> >> > > http://www.springframework.org/schema/beans >> >> > > >> > http://www.springframework.org/schema/beans/spring-beans.xsd >> >> > > >> > http://activemq.apache.org/schema/core >> >> > > >> > http://activemq.apache.org/schema/core/activemq-core.xsd"> >> >> > > >> > >> >> > > >> > >> >> > > >> > > >> > > >> > brokerName=3D"localhost" dataDirectory=3D"${activemq.data}"> >> >> > > >> > >> >> > > >> > > >> dataSource=3D"#oracle-ds"/> >> >> > > >> > >> >> > > >> > >> >> > > >> > >> >> > > >> > >> >> > > >> > >> >> > > >> > >> >> > > >> > >> >> > > >> > >> >> > > >> > >> >> > > >> > >> >> > > >> > >> >> > > >> > >> >> > > >> > >> >> > > >> > >> >> > > >> > >> >> > > >> > >> >> > > >> > >> >> > > >> > > >> > > 0.0.0.0:61616 >> >> > > >> "/> >> >> > > >> > >> >> > > >> > >> >> > > >> > >> >> > > >> > > >> > > >> > class=3D"org.apache.commons.dbcp.BasicDataSource" >> >> > > destroy-method=3D"close"> >> >> > > >> > > >> > > >> > value=3D"oracle.jdbc.OracleDriver"/> >> >> > > >> > > >> value=3D"jdbc:oracle:thin:@localhost >> >> > > >> > :1521:XE"/> >> >> > > >> > >> >> > > >> > >> >> > > >> > > value=3D"true"/> >> >> > > >> > >> >> > > >> > >> >> > > >> > >> >> > > >> > >> >> > > >> > >> >> > > >> > [] >> >> > > >> > >> >> > > >> > Leo >> >> > > >> > >> >> > > >> > >> >> > > >> > On Mon, Feb 10, 2014 at 2:42 PM, Romain Manni-Bucau >> >> > > >> > wrote: >> >> > > >> > >> >> > > >> > > Hi >> >> > > >> > > >> >> > > >> > > any specific config in your activemq.xml which could limit >> it? >> >> > maybe >> >> > > >> > > check through jmx (active it in activemq.xml) you have not= a >> >> limit >> >> > > >> > > set) >> >> > > >> > > Romain Manni-Bucau >> >> > > >> > > Twitter: @rmannibucau >> >> > > >> > > Blog: http://rmannibucau.wordpress.com/ >> >> > > >> > > LinkedIn: http://fr.linkedin.com/in/rmannibucau >> >> > > >> > > Github: https://github.com/rmannibucau >> >> > > >> > > >> >> > > >> > > >> >> > > >> > > >> >> > > >> > > 2014-02-10 17:40 GMT+01:00 Leonardo K. Shikida < >> >> shikida@gmail.com >> >> > >: >> >> > > >> > > > Hi >> >> > > >> > > > >> >> > > >> > > > I was following this to try to push more MDBs do consume >> from >> >> a >> >> > > >> single >> >> > > >> > > queue >> >> > > >> > > > >> >> > > >> > > > http://openejb.979440.n4.nabble.com/30-Limit-td981453.ht= ml >> >> > > >> > > > >> >> > > >> > > > I am trying this >> >> > > >> > > > >> >> > > >> > > > tomee.xml >> >> > > >> > > > >> >> > > >> > > > > >> > > >> > > > type=3D"ActiveMQResourceAdapter"> >> >> > > >> > > > BrokerXmlConfig =3D xbean:file:/pathto/activemq.= xml >> >> > > >> > > > ServerUrl =3D tcp://0.0.0.0:61616 >> >> > > >> > > > threadPoolSize 100 >> >> > > >> > > > >> >> > > >> > > > >> >> > > >> > > > >> >> > > >> > > > InstanceLimit 100 >> >> > > >> > > > >> >> > > >> > > > >> >> > > >> > > > and in the MDB >> >> > > >> > > > >> >> > > >> > > > (...) >> >> > > >> > > > @ActivationConfigProperty( >> >> > > >> > > > propertyName =3D "maxSessions", >> >> > > >> > > > propertyValue =3D "100"), >> >> > > >> > > > @ActivationConfigProperty( >> >> > > >> > > > propertyName =3D "maxMessagesPerSessions= ", >> >> > > >> > > > propertyValue =3D "100") }) >> >> > > >> > > > public class MyWorker implements MessageListener { >> >> > > >> > > > >> >> > > >> > > > After that, my consumers went from 10 (default) to 20, b= ut >> I'd >> >> > > like >> >> > > >> to >> >> > > >> > > push >> >> > > >> > > > to 100. >> >> > > >> > > > >> >> > > >> > > > Am I missing something? >> >> > > >> > > > >> >> > > >> > > > TIA >> >> > > >> > > > >> >> > > >> > > > Leo >> >> > > >> > > >> >> > > >> > >> >> > > >> >> >> > > >> >> > >> >> >>