Re: java.lang.OutOfMemoryError: unable to create new native thread

2018-07-13 Thread xabhi
>>Are you sure about that -Xss1024m? That would set the thread stack size to a monstrous 1GB. Perhaps you wanted to configure the initial heap size (-Xms) there but made a typo? Thanks for the help. The framework that launches the Java application was incorrectly setting default stack size to 10

Re: java.lang.OutOfMemoryError: unable to create new native thread

2018-07-03 Thread hostalp
Hello, > The JVM flags used are: ... -Xss1024m Are you sure about that -Xss1024m? That would set the thread stack size to a monstrous 1GB. Perhaps you wanted to configure the initial heap size (-Xms) there but made a typo? If that's really what's configured there try to remove it or modify i

Re: java.lang.OutOfMemoryError: unable to create new native thread

2018-07-03 Thread xabhi
It's at 64-bit system/JVM. The process limits from /proc/pid/limits are: Max processes 1634116341 processes Max open files6553665536files The JVM flags used are : -Xmx8g -Xss1024m The default value in JV

Re: java.lang.OutOfMemoryError: unable to create new native thread

2018-07-02 Thread hostalp
etr "Hi I am using ActiveMQ v5.14.4 and have observed below multiple times now. I am using NIO connector so thread count is not high (~203 threads when this issue was happening). Exception in thread "ActiveMQ InactivityMonitor WriteCheckTimer" java.lang.OutOfMemor

java.lang.OutOfMemoryError: unable to create new native thread

2018-07-02 Thread xabhi
Hi I am using ActiveMQ v5.14.4 and have observed below multiple times now. I am using NIO connector so thread count is not high (~203 threads when this issue was happening). Exception in thread "ActiveMQ InactivityMonitor WriteCheckTimer" java.lang.OutOfMemoryError: unable to create

Re: Exception in thread "ActiveMQ Broker[localhost] Scheduler" java.lang.OutOfMemoryError: unable to create new native thread

2015-01-18 Thread Tim Bain
alse > > Exception in thread "ActiveMQ Broker[localhost] Scheduler" > java.lang.OutOfMemoryError: unable to create new native thread > at java.lang.Thread.start0(Native Method) > at java.lang.Thread.start(Thread.java:693) > at &

Exception in thread "ActiveMQ Broker[localhost] Scheduler" java.lang.OutOfMemoryError: unable to create new native thread

2015-01-18 Thread Sid
Thread.run(Timer.java:505) ERROR | Could not accept connection : java.lang.Exception: java.lang.OutOfMemoryError: unable to create new native thread ERROR | Could not accept connection : java.lang.Exception: java.lang.OutOfMemoryError: unable to create new native thread ERROR | Could not accept connect

Re: java.lang.OutOfMemoryError: unable to create new native thread

2013-02-13 Thread mikmela
Have you tried -Dorg.apache.activemq.UseDedicatedTaskRunner=false http://activemq.apache.org/how-do-i-configure-10s-of-1000s-of-queues-in-a-single-broker-.html -- View this message in context: htt

Re: java.lang.OutOfMemoryError: unable to create new native thread

2013-02-07 Thread jeffrey
specifying a 64bit jvm with -d64 seemed to do the trick, It has been running for 18 hours and hasn't claimed it was running out of memory yet, so we'll see how it goes. -- View this message in context: http://activemq.2283324.n4.nabble.com/java-lang-OutOfMemoryError-unable-to-create-new-native-

Re: java.lang.OutOfMemoryError: unable to create new native thread

2013-02-06 Thread jeffrey
I tried using the -Xms and -Xmx options to see of that would help Xms at 1024M and Xmx at 2048M. This did help and my server is much more stable, but the options don't seem to be working quite as expected. Currently my process is showing User CPU % Thrd

java.lang.OutOfMemoryError: unable to create new native thread

2013-02-05 Thread jeffrey
We are using Fuse esb 7.0.2 for a broker right now and testing it to see if it can work for out production environment. Everytime I get to about 700 connections to the broker, I get this exception: Exception in thread "InactivityMonitor WriteCheck" java.lang.OutOfMemoryError: unable to

Re: Exception in thread "ActiveMQ BrokerService[localhost] Task-4" java.lang.OutOfMemoryError: unable to create new native thread

2012-11-06 Thread mserrano
This means that you have created more threads on your system than you are allowed to create or have memory to create. We cannot really tell without more information about you environment. You may find this page u

Re: java.lang.OutOfMemoryError: unable to create new native thread on AMQ 5.0

2008-12-19 Thread stefan.moser
Hi Gary, I don't think there is a JIRA issue. I have just discovered that the setting I was using for the dedicated task runner was being ignored. I'm running ActiveMQ as a Windows Service and I just found that there is also a setting for the dedicated task runner in bin\win32\wrapper.conf. I

Re: java.lang.OutOfMemoryError: unable to create new native thread on AMQ 5.0

2008-12-19 Thread Gary Tully
Stefan, is there a jira issue for this, if not can you open one and capture the problem with a test case. Is it that even with "dedicated task runner"=false there is a direct correlation between the number of threads and the number of destinations? Or is it that the memory usage of a destination i

Re: java.lang.OutOfMemoryError: unable to create new native thread on AMQ 5.0

2008-12-18 Thread stefan.moser
So this issue doesn't occur in 4.1? I might consider downgrading because I have no other options at this point. Thanks, Stefan Danilo Tuler wrote: > > Hi Stefan, > > I'm on the same boat. > I'm hitting some 4.1 issues, and I'm considering (again) to migrate to > 5.2.0. > But this issue is pus

Re: java.lang.OutOfMemoryError: unable to create new native thread on AMQ 5.0

2008-12-18 Thread Danilo Tuler
Hi Stefan, I'm on the same boat. I'm hitting some 4.1 issues, and I'm considering (again) to migrate to 5.2.0. But this issue is pushing me back. Danilo stefan.moser wrote: > > Has there been any progress on this issue? I've just started using > ActiveMQ and require a large number of topics.

Re: java.lang.OutOfMemoryError: unable to create new native thread on AMQ 5.0

2008-12-18 Thread stefan.moser
> Hiram Chirino wrote: >> >> Please post a stack trace of all those threads that on the broker side >> when you run this test. > > I'm attaching both debug logs from the server and the client. > The OOME stack trace is below. > > INFO | jvm 1 | 2008/

Re: java.lang.OutOfMemoryError: unable to create new native thread on AMQ 5.0

2008-05-22 Thread Danilo Tuler
05/22 23:29:01 | java.lang.OutOfMemoryError: unable to create new native thread INFO | jvm 1| 2008/05/22 23:29:01 | at java.lang.Thread.start0(Native Method) INFO | jvm 1| 2008/05/22 23:29:01 | at java.lang.Thread.start(Unknown Source) INFO | jvm 1| 2008/05/22 23:29

Re: java.lang.OutOfMemoryError: unable to create new native thread on AMQ 5.0

2008-05-22 Thread Hiram Chirino
Please post a stack trace of all those threads that on the broker side when you run this test. It would help us tremendously in figuring out the problem. and BTW I do think it's a problem. On Thu, May 22, 2008 at 2:40 PM, Danilo Tuler <[EMAIL PROTECTED]> wrote: > > Hi Filip, > > > Filip Hanik -

Re: java.lang.OutOfMemoryError: unable to create new native thread on AMQ 5.0

2008-05-22 Thread Filip Hanik - Dev Lists
Danilo Tuler wrote: Hi Filip, Filip Hanik - Dev Lists wrote: in the test case provided, the program is trying to create 5000+ connections/sessions, hence that would require 5000 threads, not very scalable. No, the program is not creating 5000+ connections/sessions. There is a single

Re: java.lang.OutOfMemoryError: unable to create new native thread on AMQ 5.0

2008-05-22 Thread Danilo Tuler
Hi Filip, Filip Hanik - Dev Lists wrote: > > in the test case provided, the program is trying to create 5000+ > connections/sessions, hence that would require 5000 threads, not very > scalable. No, the program is not creating 5000+ connections/sessions. There is a single connection and sessi

Re: java.lang.OutOfMemoryError: unable to create new native thread on AMQ 5.0

2008-05-22 Thread Filip Hanik - Dev Lists
Danilo Tuler wrote: Hi Filip, Filip Hanik - Dev Lists wrote: essentially, it's more of a tuning thingy then a memory leak, if one needs that many topics/queues, then not running with the dedicated task runner sounds like the solution, I didn't understand why you classify this issu

Re: java.lang.OutOfMemoryError: unable to create new native thread on AMQ 5.0

2008-05-22 Thread Hiram Chirino
could you post a stack trace of your broker when it's got a alot of threads allocated? Thx. On Fri, May 16, 2008 at 3:51 PM, Danilo Tuler <[EMAIL PROTECTED]> wrote: > > > > Hiram Chirino wrote: >> >> I modified your case so that it's a JUnit test and so that it starts >> an embedded broker.. I di

Re: java.lang.OutOfMemoryError: unable to create new native thread on AMQ 5.0

2008-05-21 Thread Danilo Tuler
Hi Filip, Filip Hanik - Dev Lists wrote: > > essentially, it's more of a tuning thingy then a memory leak, if one > needs that many topics/queues, then not running with the dedicated task > runner sounds like the solution, > I didn't understand why you classify this issue as a "tuning thing

Re: java.lang.OutOfMemoryError: unable to create new native thread on AMQ 5.0

2008-05-19 Thread Filip Hanik - Dev Lists
essentially, it's more of a tuning thingy then a memory leak, if one needs that many topics/queues, then not running with the dedicated task runner sounds like the solution, Filip Filip Hanik - Dev Lists wrote: so it seems there are two OOME problems either you hit java heap space error, or

Re: java.lang.OutOfMemoryError: unable to create new native thread on AMQ 5.0

2008-05-19 Thread Filip Hanik - Dev Lists
so it seems there are two OOME problems either you hit java heap space error, or if you have increased your -Xmx very high, you'll run into OOME caused by not enough mem for the number of threads it tries to create. the two errors are directly related to each other, increasing -Xmx (java hea

Re: java.lang.OutOfMemoryError: unable to create new native thread on AMQ 5.0

2008-05-16 Thread Rob Davies
that's from trunk ? On 16 May 2008, at 20:12, Hiram Chirino wrote: Looks like my memory problems are all related to the kaha HashIndex: By the time I create 3000 queues, there are about 5000 HashIndex object allocated. The retained size of those HashIndex objects is about 187 megs. 163 megs o

Re: java.lang.OutOfMemoryError: unable to create new native thread on AMQ 5.0

2008-05-16 Thread Danilo Tuler
Hiram Chirino wrote: > > I modified your case so that it's a JUnit test and so that it starts > an embedded broker.. I did not see the threading problem against the > trunk, but I did see : > > javax.jms.JMSException: Java heap space > > If you run my modified test case do you still see the t

Re: java.lang.OutOfMemoryError: unable to create new native thread on AMQ 5.0

2008-05-16 Thread Hiram Chirino
BTW you tested this against 5.1 right? On Fri, May 16, 2008 at 2:29 PM, Danilo Tuler <[EMAIL PROTECTED]> wrote: > > > > Hiram Chirino wrote: >> >> Still it would be nice if you could create a test case that shows the >> problem and submit it so we can get to the root of the problem. >> > > The att

Re: java.lang.OutOfMemoryError: unable to create new native thread on AMQ 5.0

2008-05-16 Thread Hiram Chirino
Looks like my memory problems are all related to the kaha HashIndex: By the time I create 3000 queues, there are about 5000 HashIndex object allocated. The retained size of those HashIndex objects is about 187 megs. 163 megs of that are just byte[]s being held directly by the HashIndex and the D

Re: java.lang.OutOfMemoryError: unable to create new native thread on AMQ 5.0

2008-05-16 Thread Hiram Chirino
I modified your case so that it's a JUnit test and so that it starts an embedded broker.. I did not see the threading problem against the trunk, but I did see : javax.jms.JMSException: Java heap space at org.apache.activemq.util.JMSExceptionSupport.create(JMSExceptionSupport.java:49)

Re: java.lang.OutOfMemoryError: unable to create new native thread on AMQ 5.0

2008-05-16 Thread Danilo Tuler
Hiram Chirino wrote: > > Still it would be nice if you could create a test case that shows the > problem and submit it so we can get to the root of the problem. > The attached code shows the problem. With UseDedicatedTaskRunner=false it works ok. http://www.nabble.com/file/p17281318/App.java

Re: java.lang.OutOfMemoryError: unable to create new native thread on AMQ 5.0

2008-05-16 Thread Hiram Chirino
Enabling that enables thread pooling. It just increases context switching a bit. Still it would be nice if you could create a test case that shows the problem and submit it so we can get to the root of the problem. Regards, Hiram On Thu, May 15, 2008 at 5:54 PM, Sridhar2008 <[EMAIL PROTECTED]>

Re: java.lang.OutOfMemoryError: unable to create new native thread on AMQ 5.0

2008-05-15 Thread Sridhar2008
Hi Hiram, We were having similar issue and confirmed the following (-Dorg.apache.activemq.UseDedicatedTaskRunner=false) works for us. What are the implications of doing this ? Thanks - Sridhar Hiram Chirino wrote: > > Could you try updating your activemq startup script so that instead of:

Re: java.lang.OutOfMemoryError: unable to create new native thread on AMQ 5.0

2008-05-15 Thread rajdavies
Could you submit a test case - I've tried to reproduce from your description - but with no success cheers, Rob -- View this message in context: http://www.nabble.com/java.lang.OutOfMemoryError%3A-unable-to-create-new-native-thread-on-AMQ-5.0-tp17005441s2354p17257710.html Sent from the ActiveM

Re: java.lang.OutOfMemoryError: unable to create new native thread on AMQ 5.0

2008-05-15 Thread Hiram Chirino
Could you try updating your activemq startup script so that instead of: ACTIVEMQ_OPTS="-Xmx512M -Dorg.apache.activemq.UseDedicatedTaskRunner=true" it reads as: ACTIVEMQ_OPTS="-Xmx512M -Dorg.apache.activemq.UseDedicatedTaskRunner=false" I think that should help with your thread usage issues. On T

Re: java.lang.OutOfMemoryError: unable to create new native thread on AMQ 5.0

2008-05-13 Thread Danilo Tuler
Hi, I have this problem too. It happens with AMQ 5.0.0 and 5.1.0. Works fine with 4.1.1 and 4.1.2. I can see the number of threads using the windows task manager, and it's not good :-) +2000 threads. My client application is a producer, and it sends thousands of messages to thousands of differen

Re: java.lang.OutOfMemoryError: unable to create new native thread on AMQ 5.0

2008-05-12 Thread Filip Hanik - Dev Lists
I'm talking about the mem settings for the JVM that gets the OOME in the settings below, I would remove the -Xmn flag, and let the JVM size the new generation itself Also, lower -Xmx800m, and if there is a heap space OOME problem, that will occur before the "unable to create new native thread",

Re: java.lang.OutOfMemoryError: unable to create new native thread on AMQ 5.0

2008-05-02 Thread Michele Mazzucco
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.(DedicatedTaskRunner.java:42) at

Re: java.lang.OutOfMemoryError: unable to create new native thread on AMQ 5.0

2008-05-02 Thread Michele Mazzucco
d leak (too many threads) then lower your -Xmx setting, this will make more room in the JVM for threads, Filip Michele Mazzucco wrote: Hi all, I'm facing the following error while using AMQ 5.0 ERROR efaultMessageListenerContainer - Setup of JMS message listener invo

Re: java.lang.OutOfMemoryError: unable to create new native thread on AMQ 5.0

2008-05-02 Thread Michele Mazzucco
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

Re: java.lang.OutOfMemoryError: unable to create new native thread on AMQ 5.0

2008-05-02 Thread Jamie McCrindle
Dev Lists > > > <[EMAIL PROTECTED]> wrote: > > > > > > > > > > when it happens, do a thread dump to make sure you don't have a thread > leak > > > > (too many threads) > > > > > > > > then lower your -Xmx set

Re: java.lang.OutOfMemoryError: unable to create new native thread on AMQ 5.0

2008-05-02 Thread Michele Mazzucco
erContainer - 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:574) at org.apache

Re: java.lang.OutOfMemoryError: unable to create new native thread on AMQ 5.0

2008-05-01 Thread Filip Hanik - Dev Lists
)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) a

Re: java.lang.OutOfMemoryError: unable to create new native thread on AMQ 5.0

2008-05-01 Thread Michele Mazzucco
Mazzucco wrote: > > > Hi all, > > > > I'm facing the following error while using AMQ 5.0 > > > > ERROR efaultMessageListenerContainer - Setup of JMS message listener > > invoker failed - trying to recover > > java.lang.OutOfMemoryError: un

Re: java.lang.OutOfMemoryError: unable to create new native thread on AMQ 5.0

2008-05-01 Thread Filip Hanik - Dev Lists
5.0 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:574)

java.lang.OutOfMemoryError: unable to create new native thread on AMQ 5.0

2008-05-01 Thread Michele Mazzucco
Hi all, I'm facing the following error while using AMQ 5.0 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)

Re: ActiveMQ : java.lang.OutOfMemoryError: unable to create new native thread

2007-07-17 Thread brahn
We had this problem as well. We resolved it by sending a DISCONNECT command before our stomp client quits.If you don't send the DISCONNECT command, the connections will continue to add up in ActiveMQ until it crashes with the error you got. This behavior seems to have started with ActiveMQ 4

Re: ActiveMQ : java.lang.OutOfMemoryError: unable to create new native thread

2007-07-17 Thread jzhang1
e. No message accumulation in the queue. >>> >>> >>> Exception in thread "ActiveMQ Transport Server: >>> stomp://release1m3..com:61613" java.lang.OutOfMemoryError: >>> unable to >>> create new native thread >>> at

Re: ActiveMQ : java.lang.OutOfMemoryError: unable to create new native thread

2007-07-17 Thread jzhang1
>> >> >> Exception in thread "ActiveMQ Transport Server: >> stomp://release1m3..com:61613" java.lang.OutOfMemoryError: >> unable to >> create new native thread >> at java.lang.Thread.start0(Native Method) >> at java.lang.

Re: ActiveMQ : java.lang.OutOfMemoryError: unable to create new native thread

2007-07-17 Thread Rob Davies
machine is 4G memory and 4 processors. The MQ messages arrive and consume every minute. No message accumulation in the queue. Exception in thread "ActiveMQ Transport Server: stomp://release1m3..com:61613" java.lang.OutOfMemoryError: unable to create new native thread

ActiveMQ : java.lang.OutOfMemoryError: unable to create new native thread

2007-07-17 Thread jzhang1
in thread "ActiveMQ Transport Server: stomp://release1m3..com:61613" java.lang.OutOfMemoryError: unable to create new native thread at java.lang.Thread.start0(Native Method) at java.lang.Thread.start(Thread.java:574) at org.apache.activemq.thread.Dedicated