1 Reply Latest reply on Sep 7, 2007 9:59 AM by bershath27

    Exception: could not create native thread

    mwelss

      After several days (7-11) we get the following exception.
      At the time of the exception there about 1000 threads, but
      exactly this jboss had more threads earlier in its lifetime.
      The server is running Linux, jdk 1.6.0_02, jboss 4.2.1 and jboss-messaging 1.4.2.CR1.

      Best regards,

      Martin



      2007-09-07 11:02:53,912 ERROR [org.jboss.resource.adapter.jms.inflow.JmsServerSession] Unable to schedule work
      javax.resource.spi.work.WorkRejectedException: org.jboss.util.threadpool.ThreadPoolFullException: java.lang.OutOfMemoryError: unable to create
      new native thread
      at org.jboss.resource.work.WorkWrapper.rejected(WorkWrapper.java:250)
      at org.jboss.util.threadpool.BasicTaskWrapper.taskRejected(BasicTaskWrapper.java:345)
      at org.jboss.util.threadpool.BasicTaskWrapper.rejectTask(BasicTaskWrapper.java:164)
      at org.jboss.util.threadpool.BasicThreadPool.execute(BasicThreadPool.java:417)
      at org.jboss.util.threadpool.BasicThreadPool.runTaskWrapper(BasicThreadPool.java:192)
      at org.jboss.resource.work.JBossWorkManager.executeWork(JBossWorkManager.java:205)
      at org.jboss.resource.work.JBossWorkManager.scheduleWork(JBossWorkManager.java:144)
      at org.jboss.resource.adapter.jms.inflow.JmsServerSession.start(JmsServerSession.java:212)
      at org.jboss.jms.client.JBossConnectionConsumer.run(JBossConnectionConsumer.java:296)
      at java.lang.Thread.run(Thread.java:619)
      Caused by: org.jboss.util.threadpool.ThreadPoolFullException: java.lang.OutOfMemoryError: unable to create new native thread
      ... 7 more


        • 1. Re: Exception: could not create native thread
          bershath27

          first get rid of JDK1.6, it's not supported yet.
          Messaging got nothing to do with the error you've got, it's screaming about an OOME :) to

          get rid of the this exception, limit your stack size to 128k, you can use -Xss128k to specify the stack size.

          Tyronne Wickramarathne