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

Terracotta Project Issue Tracker | Saravanan Subbiah | 8 years ago
  1. 0

    [CDV-930] "java.lang.OutOfMemoryError: unable to create new native thread" in the server - Terracotta Project Issue Tracker

    terracotta.org | 1 year ago
    java.lang.OutOfMemoryError: unable to create new native thread
  2. 0

    The server crashed with the following exception. Seems like we are creating a lot of threads. From the stack it looks like it is from JMX. Unfortunately the server logs dont have thread dump to see how many such threads are created. 2008-09-19 15:09:43,339 [Job_Executor32] ERROR com.tc.server.TCServerMain - Thread:Thread[Job_Executor32,5,Job_Executor] got an uncaught exception. calling CallbackOnExitHandlers. 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 com.sun.jmx.remote.opt.util.JobExecutor.handoff(JobExecutor.java:149) at com.sun.jmx.remote.opt.util.ThreadService.handoff(ThreadService.java:63) at com.sun.jmx.remote.generic.ServerSynchroMessageConnectionImpl.setCallback(ServerSynchroMessageConnectionImpl.java:106) at javax.management.remote.generic.ServerIntermediary.start(ServerIntermediary.java:964) at javax.management.remote.generic.GenericConnectorServer$ClientCreation.run(GenericConnectorServer.java:491) at com.sun.jmx.remote.opt.util.ThreadService$ThreadServiceJob.run(ThreadService.java:208) at com.sun.jmx.remote.opt.util.JobExecutor.run(JobExecutor.java:59) The L1s seem to have a 100s of the following thread. Dont know if these are causing the server to create the above threads. "Statistics Retriever Timer" Id=192 WAITING on java.util.TaskQueue@125cbec at java.lang.Object.wait(Native Method) at java.lang.Object.wait(Object.java:485) at java.util.TimerThread.mainLoop(Timer.java:483)

    Terracotta Project Issue Tracker | 8 years ago | Saravanan Subbiah
    java.lang.OutOfMemoryError: unable to create new native thread
  3. 0

    OutOfMemoryError: unable to create new native thread

    Stack Overflow | 5 years ago | sushil
    java.lang.OutOfMemoryError: unable to create new native thread
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    my web site gets down on tomcat's out of memory exception

    Stack Overflow | 6 years ago | taras
    java.lang.OutOfMemoryError: unable to create new native thread
  6. 0

    Web site gets down - errors in mod_jk(apache + tomcat) logs

    Stack Overflow | 6 years ago | taras
    java.lang.OutOfMemoryError: unable to create new native thread

  1. Reich 4 times, last 1 week ago
  2. Ajeet 46 times, last 4 months ago
  3. Diogo Jaym 1 times, last 5 months ago
  4. brunosatriani 2 times, last 6 months ago
  5. Bardh 4 times, last 6 months ago
1 more registered users
29 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.OutOfMemoryError

    unable to create new native thread

    at java.lang.Thread.start0()
  2. Java RT
    Thread.start
    1. java.lang.Thread.start0(Native Method)
    2. java.lang.Thread.start(Thread.java:574)
    2 frames
  3. JMX Remote
    JobExecutor.run
    1. com.sun.jmx.remote.opt.util.JobExecutor.handoff(JobExecutor.java:149)
    2. com.sun.jmx.remote.opt.util.ThreadService.handoff(ThreadService.java:63)
    3. com.sun.jmx.remote.generic.ServerSynchroMessageConnectionImpl.setCallback(ServerSynchroMessageConnectionImpl.java:106)
    4. javax.management.remote.generic.ServerIntermediary.start(ServerIntermediary.java:964)
    5. javax.management.remote.generic.GenericConnectorServer$ClientCreation.run(GenericConnectorServer.java:491)
    6. com.sun.jmx.remote.opt.util.ThreadService$ThreadServiceJob.run(ThreadService.java:208)
    7. com.sun.jmx.remote.opt.util.JobExecutor.run(JobExecutor.java:59)
    7 frames