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

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • Testing Kraken for a few days now, and i notice everytime i get the stack trace on error.log, the monitoring plugin stop working and don't collect logs anymore. The stacktrace is: java.lang.OutOfMemoryError: unable to create new native thread at java.lang.Thread.start0(Native Method) at java.lang.Thread.start(Thread.java:640) at java.util.Timer.<init>(Timer.java:137) at java.util.Timer.<init>(Timer.java:106) at net.sf.kraken.protocols.msn.MSNListener.<init>(MSNListener.java:68) at net.sf.kraken.protocols.msn.MSNSession.logIn(MSNSession.java:127) at net.sf.kraken.protocols.msn.MSNTransport.registrationLoggedIn(MSNTransport.java:88) at net.sf.kraken.BaseTransport.processPacket(BaseTransport.java:398) at net.sf.kraken.BaseTransport.processPacket(BaseTransport.java:199) at org.jivesoftware.openfire.component.InternalComponentManager$RoutableComponents.process(InternalComponentManager.java:619) at org.jivesoftware.openfire.spi.RoutingTableImpl.routePacket(RoutingTableImpl.java:260) at org.jivesoftware.openfire.PresenceRouter.handle(PresenceRouter.java:164) at org.jivesoftware.openfire.PresenceRouter.route(PresenceRouter.java:70) at org.jivesoftware.openfire.spi.PacketRouterImpl.route(PacketRouterImpl.java:76) at org.jivesoftware.openfire.net.StanzaHandler.processPresence(StanzaHandler.java:337) at org.jivesoftware.openfire.net.ClientStanzaHandler.processPresence(ClientStanzaHandler.java:85) at org.jivesoftware.openfire.net.StanzaHandler.process(StanzaHandler.java:254) at org.jivesoftware.openfire.net.StanzaHandler.process(StanzaHandler.java:176) at org.jivesoftware.openfire.nio.ConnectionHandler.messageReceived(ConnectionHandler.java:133) The server handle about 250-300 users and lose chat logs is a big problem for me. The parameters im using for openfire is: -Xms248m -Xmx768m -XX:MaxPermSize=368m -Xss256k Tried with default Xss, -Xss128k, and -Xmx2048m. The error is random, can't replicate it yet. Thanks
    via by John Doe,
  • Testing Kraken for a few days now, and i notice everytime i get the stack trace on error.log, the monitoring plugin stop working and don't collect logs anymore. The stacktrace is: java.lang.OutOfMemoryError: unable to create new native thread at java.lang.Thread.start0(Native Method) at java.lang.Thread.start(Thread.java:640) at java.util.Timer.<init>(Timer.java:137) at java.util.Timer.<init>(Timer.java:106) at net.sf.kraken.protocols.msn.MSNListener.<init>(MSNListener.java:68) at net.sf.kraken.protocols.msn.MSNSession.logIn(MSNSession.java:127) at net.sf.kraken.protocols.msn.MSNTransport.registrationLoggedIn(MSNTransport.java:88) at net.sf.kraken.BaseTransport.processPacket(BaseTransport.java:398) at net.sf.kraken.BaseTransport.processPacket(BaseTransport.java:199) at org.jivesoftware.openfire.component.InternalComponentManager$RoutableComponents.process(InternalComponentManager.java:619) at org.jivesoftware.openfire.spi.RoutingTableImpl.routePacket(RoutingTableImpl.java:260) at org.jivesoftware.openfire.PresenceRouter.handle(PresenceRouter.java:164) at org.jivesoftware.openfire.PresenceRouter.route(PresenceRouter.java:70) at org.jivesoftware.openfire.spi.PacketRouterImpl.route(PacketRouterImpl.java:76) at org.jivesoftware.openfire.net.StanzaHandler.processPresence(StanzaHandler.java:337) at org.jivesoftware.openfire.net.ClientStanzaHandler.processPresence(ClientStanzaHandler.java:85) at org.jivesoftware.openfire.net.StanzaHandler.process(StanzaHandler.java:254) at org.jivesoftware.openfire.net.StanzaHandler.process(StanzaHandler.java:176) at org.jivesoftware.openfire.nio.ConnectionHandler.messageReceived(ConnectionHandler.java:133) The server handle about 250-300 users and lose chat logs is a big problem for me. The parameters im using for openfire is: -Xms248m -Xmx768m -XX:MaxPermSize=368m -Xss256k Tried with default Xss, -Xss128k, and -Xmx2048m. The error is random, can't replicate it yet. Thanks
    via by John Doe,
  • Testing Kraken for a few days now, and i notice everytime i get the stack trace on error.log, the monitoring plugin stop working and don't collect logs anymore. The stacktrace is: java.lang.OutOfMemoryError: unable to create new native thread at java.lang.Thread.start0(Native Method) at java.lang.Thread.start(Thread.java:640) at java.util.Timer.<init>(Timer.java:137) at java.util.Timer.<init>(Timer.java:106) at net.sf.kraken.protocols.msn.MSNListener.<init>(MSNListener.java:68) at net.sf.kraken.protocols.msn.MSNSession.logIn(MSNSession.java:127) at net.sf.kraken.protocols.msn.MSNTransport.registrationLoggedIn(MSNTransport.java:88) at net.sf.kraken.BaseTransport.processPacket(BaseTransport.java:398) at net.sf.kraken.BaseTransport.processPacket(BaseTransport.java:199) at org.jivesoftware.openfire.component.InternalComponentManager$RoutableComponents.process(InternalComponentManager.java:619) at org.jivesoftware.openfire.spi.RoutingTableImpl.routePacket(RoutingTableImpl.java:260) at org.jivesoftware.openfire.PresenceRouter.handle(PresenceRouter.java:164) at org.jivesoftware.openfire.PresenceRouter.route(PresenceRouter.java:70) at org.jivesoftware.openfire.spi.PacketRouterImpl.route(PacketRouterImpl.java:76) at org.jivesoftware.openfire.net.StanzaHandler.processPresence(StanzaHandler.java:337) at org.jivesoftware.openfire.net.ClientStanzaHandler.processPresence(ClientStanzaHandler.java:85) at org.jivesoftware.openfire.net.StanzaHandler.process(StanzaHandler.java:254) at org.jivesoftware.openfire.net.StanzaHandler.process(StanzaHandler.java:176) at org.jivesoftware.openfire.nio.ConnectionHandler.messageReceived(ConnectionHandler.java:133) The server handle about 250-300 users and lose chat logs is a big problem for me. The parameters im using for openfire is: -Xms248m -Xmx768m -XX:MaxPermSize=368m -Xss256k Tried with default Xss, -Xss128k, and -Xmx2048m. The error is random, can't replicate it yet. Thanks
    via by John Doe,
  • Server crash on startup
    via GitHub by Vorcane
    ,
  • Startup error on Windows
    via GitHub by fxprunayre
    ,
  • Problems with DST (TimeZones)
    via jtds by admadic
    ,
    • java.lang.OutOfMemoryError: unable to create new native thread at java.lang.Thread.start0(Native Method) at java.lang.Thread.start(Thread.java:640) at java.util.Timer.<init>(Timer.java:137) at java.util.Timer.<init>(Timer.java:106) at net.sf.kraken.protocols.msn.MSNListener.<init>(MSNListener.java:68) at net.sf.kraken.protocols.msn.MSNSession.logIn(MSNSession.java:127) at net.sf.kraken.protocols.msn.MSNTransport.registrationLoggedIn(MSNTransport.java:88) at net.sf.kraken.BaseTransport.processPacket(BaseTransport.java:398) at net.sf.kraken.BaseTransport.processPacket(BaseTransport.java:199) at org.jivesoftware.openfire.component.InternalComponentManager$RoutableComponents.process(InternalComponentManager.java:619) at org.jivesoftware.openfire.spi.RoutingTableImpl.routePacket(RoutingTableImpl.java:260) at org.jivesoftware.openfire.PresenceRouter.handle(PresenceRouter.java:164) at org.jivesoftware.openfire.PresenceRouter.route(PresenceRouter.java:70) at org.jivesoftware.openfire.spi.PacketRouterImpl.route(PacketRouterImpl.java:76) at org.jivesoftware.openfire.net.StanzaHandler.processPresence(StanzaHandler.java:337) at org.jivesoftware.openfire.net.ClientStanzaHandler.processPresence(ClientStanzaHandler.java:85) at org.jivesoftware.openfire.net.StanzaHandler.process(StanzaHandler.java:254) at org.jivesoftware.openfire.net.StanzaHandler.process(StanzaHandler.java:176) at org.jivesoftware.openfire.nio.ConnectionHandler.messageReceived(ConnectionHandler.java:133)

    Users with the same issue

    Unknown visitor1 times, last one,
    brunosatriani
    brunosatriani4 times, last one,
    Macapon
    Macapon4 times, last one,
    bernardpaulus
    bernardpaulus8 times, last one,
    nasimk
    nasimk1 times, last one,
    34 more bugmates