AnsweredAssumed Answered

LastActivity.getLastActivity gave me a outofmemeory at aSmack 4.0.7

Question asked by Suraj on Jun 25, 2015

java.lang.OutOfMemoryError: Failed to allocate a 20012 byte allocation with 4170656 free bytes and 4MB until OOM; failed due to fragmentation (required continguous free 20480 bytes where largest contiguous free 16384 bytes)

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

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

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

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

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

at org.jivesoftware.smack.XMPPConnection.createPacketCollectorAndSend(XMPPConnection.java:791)

at org.jivesoftware.smackx.iqlast.LastActivityManager.getLastActivity(LastActivityManager.java:234)

Outcomes