Not enough memory available to spawn a new thread

java.lang.OutOfMemoryError
Javadoc
Thrown when the Java Virtual Machine cannot allocate an object because it is out of memory, and no more memory could be made available by the garbage collector. {@code OutOfMemoryError} objects may be constructed by the virtual machine as if {@linkplain Throwable#Throwable(String, Throwable, boolean, boolean) suppression were disabled and/or the stack trace was not writable}. @author unascribed @since JDK1.0
at java.lang.Thread.nativeCreate
(source)
at java.lang.Thread.start
(source)
at java.util.concurrent.ThreadPoolExecutor.addWorker
(source)
at java.util.concurrent.ThreadPoolExecutor.execute
(source)
at java.util.concurrent.AbstractExecutorService.submit
(source)
4 frames hidden

Typical Exception Messages

  1. pthread_create (1040KB stack) failed: Try again
  2. Could not allocate JNI Env
  3. pthread_create (1040KB stack) failed: Out of memory
  4. Fatal Exception thrown on Scheduler.Worker thread.

Origin

ThreadPoolExecutor.execute() has thrown an OutOfMemoryError

java.lang.OutOfMemoryError
3 frames hidden
java.util.concurrent.ThreadPoolExecutor.execute
50Web pages

Similar

Specific cases

External results for this pattern (8)

  1. karlshinetechvia GitHub5 months ago
    pthread_create (1040KB stack) failed: Out of memory
    Show stack trace
  2. ameshkovvia GitHub5 months ago
    Could not allocate JNI Env
    Show stack trace
  3. pthread_create (1040KB stack) failed: Try again
    Show stack trace
  4. craziesvia GitHub9 months ago
    pthread_create (1040KB stack) failed: Out of memory
    Show stack trace
  5. Could not allocate JNI Env
    Show stack trace
  6. Could not allocate JNI Env
    Show stack trace
  7. siselvia GitHub1 year ago
    pthread_create (1040KB stack) failed: Try again
    Show stack trace
  8. pengjinningvia GitHub2 years ago
    pthread_create (1040KB stack) failed: Try again
    Show stack trace