-
Notifications
You must be signed in to change notification settings - Fork 77
Open
Description
stomp版本:3.1.3
LeakCanary报内存泄漏,报错信息:
GC Root:input or output parameters in native code
java.util.TaskQueue instance Leaking: UNKONWN Retaining 528 B in 2 objects TaskQueue.queue
java.util.TimerTask[] array Leaking: UNKONWN Retaining 512 B in 1 objects TimerTask[0]
com.ejlchina.stomp.Stomp$1 instance Leaking: UNKONWN Retaining 5.0 MB in 10907 objects Anonymous subclass of java.util.TimerTask Stomp$1.this$this$0
com.ejlchina.stomp.Stomp instance Leaking: UNKONWN Retaining 5.0 MB in 10905 objects Stomp.onConnected
有在onDestory方法中释放,但是无用,ondestory方法中调用了stopWS:
private void stopWS() {
if (stomp != null ) {
stomp.disconnect();
stomp.untopic(subscribeUrl);
stomp = null;
}
}
Metadata
Metadata
Assignees
Labels
No labels