We're updating the issue view to help you get more done. 

OutOfMemory

Description

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

Environment

RHEL 6.0, RPM install, virtualized host on RHEV with 4G ram x86_64

Acceptance Test - Entry

None

Activity

Show:
daniel vultur
December 15, 2010, 5:03 PM

Howdy! Unfortunately that doesn't really tell me anything I can use. =( There's certainly tons of reasons why it could be showing out of memory errors. I can tell you that I'm running with nearly the same specs (albeit under RHEL5), but I do not have a large user base. There are a number of folk on the forums who also run larger installs – you may want to try there any see if others have run into that issue.

John Doe
December 15, 2010, 5:58 PM

I post it here because maybe someone could point me something about the "Cannot create new native threads", but searching on the forum i found about some people having the same issues, and now im using -XX:+UseLargePages and increased ulimit limits, until now didn't occurr, but i guess is something to discuss on forums, not really a bug.

It was my mistake posting here first instead forums.

daniel vultur
December 15, 2010, 9:42 PM

No worries – I just think the forums would get you better results since I'm not sure what would cause it. =)

Assignee

Daniel Henninger

Reporter

John Doe

Labels

None

Expected Effort

None

Ignite Forum URL

None

Components

Affects versions

Priority

Major
Configure