This looks like you're running out of memory while trying to create a new 
thread that handles a new connection. 
There can be many reasons for getting an OOM. I suggest you have a read over 
http://activemq.apache.org/javalangoutofmemory.html first.

If you have hundreds of connections into the broker, check the ActiveMQ 
performance tuning guide [1] from FuseSource.com on how to scale to hundreds of 
connections.


Hope this helps.


[1] http://fusesource.com/docs/broker/5.5/tuning/front.html

Torsten Mielke
tors...@fusesource.com
tmie...@blogspot.com

On Nov 16, 2011, at 1:18 PM, Horacio Natyural wrote:

> hi,
> 
> i would like to ask if anyone is encountering this. we're getting
> outofmemory errors on activemq 5.3.0.
> please see the following
> 
> Exception in thread "InactivityMonitor WriteCheck" java.lang.OutOfMemoryError
>       at java.security.AccessController.getProtectionDomains(Native Method)
>       at java.security.AccessController.getContext(AccessController.java:136)
>       at java.lang.Thread.initialize(Thread.java:334)
>       at java.lang.Thread.<init>(Thread.java:267)
>       at java.lang.Thread.<init>(Thread.java:165)
>       at 
> org.apache.activemq.transport.InactivityMonitor$5.newThread(InactivityMonitor.java:311)
>       at 
> java.util.concurrent.ThreadPoolExecutor.addThread(ThreadPoolExecutor.java:683)
>       at 
> java.util.concurrent.ThreadPoolExecutor.addIfUnderMaximumPoolSize(ThreadPoolExecutor.java:732)
>       at 
> java.util.concurrent.ThreadPoolExecutor.execute(ThreadPoolExecutor.java:668)
>       at 
> org.apache.activemq.transport.InactivityMonitor.writeCheck(InactivityMonitor.java:132)
>       at 
> org.apache.activemq.transport.InactivityMonitor$2.run(InactivityMonitor.java:106)
>       at 
> org.apache.activemq.thread.SchedulerTimerTask.run(SchedulerTimerTask.java:33)
>       at java.util.Timer$TimerImpl.run(Unknown Source)
> Exception in thread "LT=2:P=191898:O=0:port=9402" java.lang.OutOfMemoryError
>       at java.net.PlainSocketImpl.socketAccept(Native Method)Exception in
> thread "InactivityMonitor ReadCheck" java.lang.OutOfMemoryError
>       at org.apache.activemq.transport.InactivityMonitor.readCheckException
> in thread "LT=0:P=191898:O=0:port=9100" (InactivityMonitor.java:166)
>       at 
> org.apache.activemq.transport.InactivityMonitor$1.run(InactivityMonitor.java:89)java.lang.OutOfMemoryError
> Exception in thread "InactivityMonitor WriteCheck" java.lang.OutOfMemoryError
> Exception in thread "ActiveMQ Transport Server: tcp://localhost:8007"
> java.lang.OutOfMemoryError
>       at java.net.PlainSocketImpl.socketAccept(Native Method)
>       at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:414)
>       at java.net.ServerSocket.implAccept(ServerSocket.java:464)
>       at java.net.ServerSocket.accept(ServerSocket.java:432)
>       at 
> org.apache.activemq.transport.tcp.TcpTransportServer.run(TcpTransportServer.java:280)
>       at java.lang.Thread.run(Thread.java:735)
>       at java.net.PlainSocketImpl.socketAccept(Native Method)
>       at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:414)
>       at java.net.ServerSocket.implAccept(ServerSocket.java:464)
>       at java.net.ServerSocket.accept(ServerSocket.java:432)
>       at com.ibm.rmi.transport.ListenerThread.run(ListenerThread.java:174)
> 
>       at      at 
> org.apache.activemq.thread.SchedulerTimerTask.run(SchedulerTimerTask.java:3java.security.AccessController.3getProtectionDomains(Native
> Method))
> 
>       at java.util.Timer$TimerImpl.run(Unknown Source)
>       at java.security.AccessController.getContext(AccessController.java:136)
>       at java.lang.Thread.initialize(Thread.java:334Exception in thread
> "Thread-35" java.lang.OutOfMemoryError
> )
>       at java.lang.Thread.<init>(Thread.java:267)     at
> 
> Thanks
> horacio




Reply via email to