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

Jive Software Open Source | John Doe | 6 years ago
  1. 0

    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

    Jive Software Open Source | 6 years ago | John Doe
    java.lang.OutOfMemoryError: unable to create new native thread
  2. 0

    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

    JIRA | 6 years ago | John Doe
    java.lang.OutOfMemoryError: unable to create new native thread
  3. 0

    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

    Jive Software Open Source | 6 years ago | John Doe
    java.lang.OutOfMemoryError: unable to create new native thread
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 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. brunosatriani 4 times, last 5 months ago
  2. Macapon 4 times, last 9 months ago
1 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
    Timer.<init>
    1. java.lang.Thread.start0(Native Method)
    2. java.lang.Thread.start(Thread.java:640)
    3. java.util.Timer.<init>(Timer.java:137)
    4. java.util.Timer.<init>(Timer.java:106)
    4 frames
  3. net.sf.kraken
    BaseTransport.processPacket
    1. net.sf.kraken.protocols.msn.MSNListener.<init>(MSNListener.java:68)
    2. net.sf.kraken.protocols.msn.MSNSession.logIn(MSNSession.java:127)
    3. net.sf.kraken.protocols.msn.MSNTransport.registrationLoggedIn(MSNTransport.java:88)
    4. net.sf.kraken.BaseTransport.processPacket(BaseTransport.java:398)
    5. net.sf.kraken.BaseTransport.processPacket(BaseTransport.java:199)
    5 frames
  4. org.jivesoftware.openfire
    ConnectionHandler.messageReceived
    1. org.jivesoftware.openfire.component.InternalComponentManager$RoutableComponents.process(InternalComponentManager.java:619)
    2. org.jivesoftware.openfire.spi.RoutingTableImpl.routePacket(RoutingTableImpl.java:260)
    3. org.jivesoftware.openfire.PresenceRouter.handle(PresenceRouter.java:164)
    4. org.jivesoftware.openfire.PresenceRouter.route(PresenceRouter.java:70)
    5. org.jivesoftware.openfire.spi.PacketRouterImpl.route(PacketRouterImpl.java:76)
    6. org.jivesoftware.openfire.net.StanzaHandler.processPresence(StanzaHandler.java:337)
    7. org.jivesoftware.openfire.net.ClientStanzaHandler.processPresence(ClientStanzaHandler.java:85)
    8. org.jivesoftware.openfire.net.StanzaHandler.process(StanzaHandler.java:254)
    9. org.jivesoftware.openfire.net.StanzaHandler.process(StanzaHandler.java:176)
    10. org.jivesoftware.openfire.nio.ConnectionHandler.messageReceived(ConnectionHandler.java:133)
    10 frames