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

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Atlassian JIRA by Alexander Much, 1 year ago
unable to create new native thread
via Oracle Community by 787468, 1 year ago
via wordpress.com by Unknown author, 1 year ago
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 com.sun.jndi.ldap.Connection.(Connection.java:215)
at com.sun.jndi.ldap.LdapClient.(LdapClient.java:118)
at com.sun.jndi.ldap.LdapClient.getInstance(LdapClient.java:1580)
at com.sun.jndi.ldap.LdapCtx.connect(LdapCtx.java:2616)
at com.sun.jndi.ldap.LdapCtx.(LdapCtx.java:287)
at com.sun.jndi.ldap.LdapCtxFactory.getUsingURL(LdapCtxFactory.java:175)
at com.sun.jndi.ldap.LdapCtxFactory.getUsingURLs(LdapCtxFactory.java:193)
at com.sun.jndi.ldap.LdapCtxFactory.getLdapCtxInstance(LdapCtxFactory.java:136)
at com.sun.jndi.ldap.LdapCtxFactory.getInitialContext(LdapCtxFactory.java:66)
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:667)
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:288)
at javax.naming.InitialContext.init(InitialContext.java:223)
at javax.naming.InitialContext.(InitialContext.java:197)
at javax.naming.directory.InitialDirContext.(InitialDirContext.java:82)
at com.cenqua.fisheye.user.ldap.LDAPAuth.makeContext(LDAPAuth.java:256)
at com.cenqua.fisheye.user.ldap.LDAPAuth.recreateAuth(LDAPAuth.java:185)
at com.cenqua.fisheye.user.UserManager.login(UserManager.java:358)
at com.cenqua.fisheye.api.BaseApiHandler$HttpContext.checkAuth(BaseApiHandler.java:83)
at com.cenqua.fisheye.api.ApiImplementation.getAuthTokenParam(ApiImplementation.java:136)
at com.cenqua.fisheye.api.ApiImplementation.parseRevisionRequest(ApiImplementation.java:576)
at com.cenqua.fisheye.api.ApiImplementation.doGetRevision(ApiImplementation.java:560)
at com.cenqua.fisheye.api.ApiImplementation.handleCommand(ApiImplementation.java:185)
at com.cenqua.fisheye.api.ApiImplementation.handle(ApiImplementation.java:177)
at com.cenqua.fisheye.api.BaseApiServlet.doPost(BaseApiServlet.java:25)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)
at com.cenqua.fisheye.web.filters.TotalityFilter.doFilter(TotalityFilter.java:123)
at com.atlassian.fisheye.trustedapplications.FisheyeTrustedApplicationsFilter.doFilter(FisheyeTrustedApplicationsFilter.java:99)
at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:183)
at com.cenqua.fisheye.web.util.GZIPFilter.doFilter(GZIPFilter.java:29)
at com.cenqua.fisheye.web.filters.UpfrontFilter.doFilter(UpfrontFilter.java:33)
at org.mortbay.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1141)
at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:365)
at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:712)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:211)
at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
at org.mortbay.jetty.Server.handle(Server.java:285)
at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:502)
at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:835)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:641)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:208)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:378)
at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:368)

Users with the same issue

10 times, 1 week ago
Once, 2 weeks ago
Samebug visitor profile picture
Unknown user
Once, 1 month ago
Once, 1 month ago
Once, 1 month ago
39 more bugmates

Know the solutions? Share your knowledge to help other developers to debug faster.