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

atlassian.com | 2 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Dynmap API 1.7 error on server launch

    GitHub | 4 years ago | wolfbane8653
    java.lang.OutOfMemoryError: unable to create new native thread
  2. 0

    Newbie - memory issues

    Google Groups | 3 years ago | Alexandru Ungur
    java.lang.OutOfMemoryError: unable to create new native thread
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    Jenkins Master on Windows - Java settings

    Stack Overflow | 2 years ago | user2838032
    java.lang.OutOfMemoryError: unable to create new native thread
  5. 0

    Too many ports (2048) open

    GitHub | 3 years ago | jcoyne
    java.lang.OutOfMemoryError: unable to create new native thread
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
    ThreadPoolExecutor.execute
    1. java.lang.Thread.start0(Native Method)
    2. java.lang.Thread.start(Unknown Source)
    3. java.util.concurrent.ThreadPoolExecutor.addWorker(Unknown Source)
    4. java.util.concurrent.ThreadPoolExecutor.execute(Unknown Source)
    4 frames
  3. BoneCP :: Core Library
    BoneCP.<init>
    1. com.jolbox.bonecp.ConnectionPartition.<init>(ConnectionPartition.java:236)
    2. com.jolbox.bonecp.BoneCP.<init>(BoneCP.java:356)
    2 frames
  4. com.jolbox.bonecp
    BoneCPConnectionProvider.configure
    1. com.jolbox.bonecp.provider.BoneCPConnectionProvider.createPool(BoneCPConnectionProvider.java:168)
    2. com.jolbox.bonecp.provider.BoneCPConnectionProvider.configure(BoneCPConnectionProvider.java:142)
    2 frames
  5. Hibernate
    ConnectionProviderFactory.newConnectionProvider
    1. org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:143)
    2. org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:84)
    2 frames
  6. Hibernate
    Configuration.buildSessionFactory
    1. org.hibernate.cfg.SettingsFactory.createConnectionProvider(SettingsFactory.java:438)
    2. org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:91)
    3. org.hibernate.cfg.Configuration.buildSettingsInternal(Configuration.java:2163)
    4. org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2159)
    5. org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1383)
    5 frames
  7. com.cenqua.crucible
    DBControlFactoryImpl.<init>
    1. com.cenqua.crucible.hibernate.HibernateUtil.setUp(HibernateUtil.java:100)
    2. com.cenqua.crucible.hibernate.DefaultDBControl.start(DefaultDBControl.java:243)
    3. com.cenqua.crucible.hibernate.DefaultDBControl.start(DefaultDBControl.java:221)
    4. com.cenqua.crucible.hibernate.DBControlFactoryImpl.<init>(DBControlFactoryImpl.java:40)
    4 frames
  8. Java RT
    Constructor.newInstance
    1. sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    2. sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
    3. sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
    4. java.lang.reflect.Constructor.newInstance(Unknown Source)
    4 frames
  9. Spring Beans
    DefaultListableBeanFactory.preInstantiateSingletons
    1. org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:126)
    2. org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:108)
    3. org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:280)
    4. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1003)
    5. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:907)
    6. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:485)
    7. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
    8. org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)
    9. org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
    10. org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)
    11. org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)
    12. org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:580)
    12 frames
  10. Spring Context
    AbstractApplicationContext.refresh
    1. org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)
    2. org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425)
    2 frames
  11. Spring
    ContextLoaderListener.contextInitialized
    1. org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:276)
    2. org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:197)
    3. org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47)
    3 frames
  12. Jetty Server
    WebAppContext.doStart
    1. org.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.java:549)
    2. org.mortbay.jetty.servlet.Context.startContext(Context.java:136)
    3. org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1282)
    4. org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:518)
    5. org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:499)
    5 frames
  13. com.cenqua.fisheye
    FishEyeWebApplicationContext.doStart
    1. com.cenqua.fisheye.web.jetty.FishEyeWebApplicationContext.doStart(FishEyeWebApplicationContext.java:28)
    1 frame
  14. Jetty Util
    AbstractLifeCycle.start
    1. org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
    1 frame
  15. Jetty Server
    ContextHandlerCollection.doStart
    1. org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152)
    2. org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:156)
    2 frames
  16. Jetty Util
    AbstractLifeCycle.start
    1. org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
    1 frame
  17. Jetty Server
    HandlerCollection.doStart
    1. org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152)
    1 frame
  18. Jetty Util
    AbstractLifeCycle.start
    1. org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
    1 frame
  19. Jetty Server
    Server.doStart
    1. org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
    2. org.mortbay.jetty.Server.doStart(Server.java:224)
    2 frames
  20. Jetty Util
    AbstractLifeCycle.start
    1. org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
    1 frame
  21. com.cenqua.fisheye
    Run.main
    1. com.cenqua.fisheye.web.WebServer.start(WebServer.java:276)
    2. com.cenqua.fisheye.ctl.Run.mainImpl(Run.java:233)
    3. com.cenqua.fisheye.ctl.Run.main(Run.java:78)
    3 frames
  22. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    4. java.lang.reflect.Method.invoke(Unknown Source)
    4 frames
  23. com.cenqua.fisheye
    FishEyeCtl.main
    1. com.cenqua.fisheye.FishEyeCtl.mainImpl(FishEyeCtl.java:98)
    2. com.cenqua.fisheye.FishEyeCtl.main(FishEyeCtl.java:41)
    2 frames