AnsweredAssumed Answered

PingManager.ping gave me a outofmemeory at aSmack 4.0.1-SNAPSHOT-2014-07-13

Question asked by myth2loki on Nov 26, 2014
Latest reply on Nov 26, 2014 by myth2loki

java.lang.OutOfMemoryError

  at java.util.concurrent.ArrayBlockingQueue.<init>(ArrayBlockingQueue.java:197)

  at java.util.concurrent.ArrayBlockingQueue.<init>(ArrayBlockingQueue.java:181)

  at org.jivesoftware.smack.PacketCollector.<init>(PacketCollector.java:72)

  at org.jivesoftware.smack.PacketCollector.<init>(PacketCollector.java:58)

  at org.jivesoftware.smack.XMPPConnection.createPacketCollector(XMPPConnection.java :802)

  at org.jivesoftware.smack.XMPPConnection.createPacketCollectorAndSend(XMPPConnecti on.java:786)

  at org.jivesoftware.smackx.ping.PingManager.ping(PingManager.java:175)

  at org.jivesoftware.smackx.ping.PingManager.ping(PingManager.java:193)

  at org.jivesoftware.smackx.ping.PingManager.pingMyServer(PingManager.java:237)

  at xxx.xxx.xxx.PingReceiver.onReceive(IMManager.java:1234)

 

I set a 5-minute loop with alarmmanager. sometimes I got the error message above.

Could anyone give me a help?

 

PS:I have saw the url [SMACK-441] Memory leak in KeepAliveManager - Jive Software Open Source  said bug has been fixed, But I got the error indeed.

Outcomes