activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michele Mazzucco" <michelemazzu...@gmail.com>
Subject Re: java.lang.OutOfMemoryError: unable to create new native thread on AMQ 5.0
Date Fri, 02 May 2008 10:07:55 GMT
Hi again,

here are the full stack traces.

1 - Broker
Loading message broker from: xbean:activemq.xml
INFO  BrokerService                  - Using Persistence Adapter:
AMQPersistenceAdapter(/work/michele/apache-activemq-5.0.0/data/localhost)
INFO  BrokerService                  - ActiveMQ 5.0.0 JMS Message
Broker (localhost) is starting
INFO  BrokerService                  - For help or more information
please see: http://activemq.apache.org/
INFO  AMQPersistenceAdapter          - AMQStore starting using
directory: /work/michele/apache-activemq-5.0.0/data/localhost
INFO  ManagementContext              - JMX consoles can connect to
service:jmx:rmi:///jndi/rmi://localhost:1099/jmxrmi
INFO  KahaStore                      - Kaha Store using data directory
/work/michele/apache-activemq-5.0.0/data/localhost/kr-store/state
INFO  AMQPersistenceAdapter          - Active data files: []
WARN  AMQPersistenceAdapter          - The ReferenceStore is not valid
- recovering ...
INFO  KahaStore                      - Kaha Store successfully deleted
data directory /work/michele/apache-activemq-5.0.0/data/localhost/kr-store/data
INFO  AMQPersistenceAdapter          - Journal Recovery Started from:
DataManager:(data-)
INFO  AMQPersistenceAdapter          - Recovered 0 operations from
redo log in 0.051 seconds.
INFO  AMQPersistenceAdapter          - Finished recovering the ReferenceStore
INFO  KahaStore                      - Kaha Store using data directory
/work/michele/apache-activemq-5.0.0/data/localhost/kr-store/data
INFO  TransportServerThreadSupport   - Listening for connections at:
tcp://giga06.ncl.ac.uk:61616
INFO  TransportConnector             - Connector openwire Started
INFO  NetworkConnector               - Network Connector
org.apache.activemq.transport.discovery.multicast.MulticastDiscoveryAgent@1d8d237
Started
INFO  BrokerService                  - ActiveMQ JMS Message Broker
(localhost, ID:giga06.ncl.ac.uk-41899-1209722312855-0:0) started
INFO  TransportConnector             - Connector vm://localhost Started
ERROR efaultMessageListenerContainer - Setup of JMS message listener
invoker failed - trying to recover
java.lang.OutOfMemoryError: unable to create new native thread
        at java.lang.Thread.start0(Native Method)
        at java.lang.Thread.start(Thread.java:597)
        at org.apache.activemq.thread.DedicatedTaskRunner.<init>(DedicatedTaskRunner.java:42)
        at org.apache.activemq.thread.TaskRunnerFactory.createTaskRunner(TaskRunnerFactory.java:74)
        at org.apache.activemq.ActiveMQSessionExecutor.wakeup(ActiveMQSessionExecutor.java:92)
        at org.apache.activemq.ActiveMQMessageConsumer.start(ActiveMQMessageConsumer.java:993)
        at org.apache.activemq.ActiveMQMessageConsumer.<init>(ActiveMQMessageConsumer.java:222)
        at org.apache.activemq.ActiveMQSession.createConsumer(ActiveMQSession.java:1004)
        at org.apache.activemq.ActiveMQSession.createConsumer(ActiveMQSession.java:948)
        at org.apache.activemq.ActiveMQSession.createConsumer(ActiveMQSession.java:861)
        at org.springframework.jms.listener.AbstractPollingMessageListenerContainer.createConsumer(AbstractPollingMessageListenerContainer.java:437)
        at org.springframework.jms.listener.AbstractPollingMessageListenerContainer.createListenerConsumer(AbstractPollingMessageListenerContainer.java:216)
        at org.springframework.jms.listener.AbstractPollingMessageListenerContainer.doReceiveAndExecute(AbstractPollingMessageListenerContainer.java:297)
        at org.springframework.jms.listener.AbstractPollingMessageListenerContainer.receiveAndExecute(AbstractPollingMessageListenerContainer.java:254)
        at org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.invokeListener(DefaultMessageListenerContainer.java:871)
        at org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.run(DefaultMessageListenerContainer.java:818)
        at java.lang.Thread.run(Thread.java:619)
ERROR Service                        - Async error occurred:
java.lang.OutOfMemoryError: unable to create new native thread
java.lang.OutOfMemoryError: unable to create new native thread
        at java.lang.Thread.start0(Native Method)
        at java.lang.Thread.start(Thread.java:597)
        at org.apache.activemq.broker.TransportConnection.processShutdown(TransportConnection.java:326)
        at org.apache.activemq.command.ShutdownInfo.visit(ShutdownInfo.java:35)
        at org.apache.activemq.broker.TransportConnection.service(TransportConnection.java:281)
        at org.apache.activemq.broker.TransportConnection$1.onCommand(TransportConnection.java:178)
        at org.apache.activemq.transport.TransportFilter.onCommand(TransportFilter.java:67)
        at org.apache.activemq.transport.WireFormatNegotiator.onCommand(WireFormatNegotiator.java:134)
        at org.apache.activemq.transport.InactivityMonitor.onCommand(InactivityMonitor.java:138)
        at org.apache.activemq.transport.TransportSupport.doConsume(TransportSupport.java:83)
        at org.apache.activemq.transport.tcp.TcpTransport.doRun(TcpTransport.java:185)
        at org.apache.activemq.transport.tcp.TcpTransport.run(TcpTransport.java:172)
        at java.lang.Thread.run(Thread.java:619)
Exception in thread "DefaultMessageListenerContainer-100"
java.lang.OutOfMemoryError: unable to create new native thread
        at java.lang.Thread.start0(Native Method)
        at java.lang.Thread.start(Thread.java:597)
        at org.apache.activemq.transport.TransportThreadSupport.doStart(TransportThreadSupport.java:43)
        at org.apache.activemq.transport.tcp.TcpTransport.doStart(TcpTransport.java:368)
        at org.apache.activemq.util.ServiceSupport.start(ServiceSupport.java:48)
        at org.apache.activemq.transport.TransportFilter.start(TransportFilter.java:56)
        at org.apache.activemq.transport.TransportFilter.start(TransportFilter.java:56)
        at org.apache.activemq.transport.WireFormatNegotiator.start(WireFormatNegotiator.java:63)
        at org.apache.activemq.transport.TransportFilter.start(TransportFilter.java:56)
        at org.apache.activemq.transport.TransportFilter.start(TransportFilter.java:56)
        at org.apache.activemq.ActiveMQConnectionFactory.createActiveMQConnection(ActiveMQConnectionFactory.java:256)
        at org.apache.activemq.ActiveMQConnectionFactory.createActiveMQConnection(ActiveMQConnectionFactory.java:220)
        at org.apache.activemq.ActiveMQConnectionFactory.createConnection(ActiveMQConnectionFactory.java:168)
        at org.springframework.jms.support.JmsAccessor.createConnection(JmsAccessor.java:188)
        at org.springframework.jms.listener.AbstractJmsListeningContainer.createSharedConnection(AbstractJmsListeningContainer.java:209)
        at org.springframework.jms.listener.AbstractJmsListeningContainer.refreshSharedConnection(AbstractJmsListeningContainer.java:197)
        at org.springframework.jms.listener.DefaultMessageListenerContainer.refreshConnectionUntilSuccessful(DefaultMessageListenerContainer.java:701)
        at org.springframework.jms.listener.DefaultMessageListenerContainer.recoverAfterListenerSetupFailure(DefaultMessageListenerContainer.java:683)
        at org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.run(DefaultMessageListenerContainer.java:835)
        at java.lang.Thread.run(Thread.java:619)
Exception in thread "ActiveMQ Transport Server: tcp://localhost:61616"
java.lang.OutOfMemoryError: unable to create new native thread
        at java.lang.Thread.start0(Native Method)
        at java.lang.Thread.start(Thread.java:597)
        at org.apache.activemq.broker.TransportConnector$1.onAccept(TransportConnector.java:160)
        at org.apache.activemq.transport.tcp.TcpTransportServer.run(TcpTransportServer.java:213)
        at java.lang.Thread.run(Thread.java:619)
INFO  BrokerService                  - ActiveMQ Message Broker
(localhost, ID:giga06.ncl.ac.uk-41899-1209722312855-0:0) is shutting
down



2 - Client
ERROR 10:41:58,582 (ClientTask.java:250) - unable to create new native thread
     [java]     at
org.apache.activemq.thread.TaskRunnerFactory.createTaskRunner(TaskRunnerFactory.java:74)
     [java]     at
org.apache.activemq.broker.region.Queue.<init>(Queue.java:125)
     [java]     at
org.apache.activemq.broker.region.TempQueueRegion$1.<init>(TempQueueRegion.java:54)
     [java]     at
org.apache.activemq.broker.region.TempQueueRegion.createDestination(TempQueueRegion.java:44)
     [java]     at
org.apache.activemq.broker.jmx.ManagedTempQueueRegion.createDestination(ManagedTempQueueRegion.java:56)
     [java]     at
org.apache.activemq.broker.region.AbstractRegion.addDestination(AbstractRegion.java:116)
     [java]     at
org.apache.activemq.broker.region.RegionBroker.addDestination(RegionBroker.java:262)
     [java]     at
org.apache.activemq.broker.region.RegionBroker.addDestinationInfo(RegionBroker.java:300)
     [java]     at
org.apache.activemq.broker.BrokerFilter.addDestinationInfo(BrokerFilter.java:213)
     [java]     at
org.apache.activemq.advisory.AdvisoryBroker.addDestinationInfo(AdvisoryBroker.java:157)
     [java]     at
org.apache.activemq.broker.BrokerFilter.addDestinationInfo(BrokerFilter.java:213)
     [java]     at
org.apache.activemq.broker.MutableBrokerFilter.addDestinationInfo(MutableBrokerFilter.java:223)
     [java]     at
org.apache.activemq.broker.TransportConnection.processAddDestination(TransportConnection.java:456)
     [java]     at
org.apache.activemq.command.DestinationInfo.visit(DestinationInfo.java:122)
     [java]     at
org.apache.activemq.broker.TransportConnection.service(TransportConnection.java:281)
     [java]     at
org.apache.activemq.broker.TransportConnection$1.onCommand(TransportConnection.java:178)
     [java]     at
org.apache.activemq.transport.TransportFilter.onCommand(TransportFilter.java:67)
     [java]     at
org.apache.activemq.transport.WireFormatNegotiator.onCommand(WireFormatNegotiator.java:134)
     [java]     at
org.apache.activemq.transport.InactivityMonitor.onCommand(InactivityMonitor.java:138)
     [java]     at
org.apache.activemq.transport.TransportSupport.doConsume(TransportSupport.java:83)
     [java]     at
org.apache.activemq.transport.tcp.TcpTransport.doRun(TcpTransport.java:185)
     [java]     at
org.apache.activemq.transport.tcp.TcpTransport.run(TcpTransport.java:172)
     [java]     ... 1 more
     [java] javax.jms.JMSException: unable to create new native thread
     [java]     at
org.apache.activemq.util.JMSExceptionSupport.create(JMSExceptionSupport.java:49)
     [java]     at
org.apache.activemq.ActiveMQConnection.syncSendPacket(ActiveMQConnection.java:1178)
     [java]     at
org.apache.activemq.ActiveMQConnection.createTempDestination(ActiveMQConnection.java:1720)
     [java]     at
org.apache.activemq.ActiveMQSession.createTemporaryQueue(ActiveMQSession.java:1218)
     [java]     at
benchmark.db.pooled.client.ClientTask.call(ClientTask.java:204)
     [java]     at
benchmark.db.pooled.client.ClientTask.call(ClientTask.java:56)
     [java]     at
java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
     [java]     at java.util.concurrent.FutureTask.run(FutureTask.java:138)
     [java]     at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
     [java]     at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
     [java]     at java.lang.Thread.run(Thread.java:619)
     [java] Caused by: java.lang.OutOfMemoryError: unable to create
new native thread
     [java]     at java.lang.Thread.start0(Native Method)
     [java]     at java.lang.Thread.start(Thread.java:597)


Michele


On Fri, May 2, 2008 at 10:26 AM, Michele Mazzucco
<michelemazzucco@gmail.com> wrote:
> Filip,
>
>  are you talking about the broker or the client? The settings below are for
> the broker.
>
>  Michele
>
>
>  On 2 May 2008, at 00:20, Filip Hanik - Dev Lists wrote:
>
>
> >
> > >
> > > >
> > > > > -Xms512m -Xmx1024m -Xmn500m
> > > > >
> > > >
> > >
> >
>
>

Mime
View raw message