Add Reference Collection logging to the WeakReferenceMessageHandle Class
------------------------------------------------------------------------
Key: QPID-2416
URL: https://issues.apache.org/jira/browse/QPID-2416
Project: Qpid
Issue Type: Task
Components: Java Broker
Reporter: Martin Ritchie
Priority: Minor
To understand when the JVM purges our WeakReferences from memory we can add
some debug logging that will print out when the References are collected by the
GC: http://java.sun.com/javase/6/docs/api/java/lang/ref/ReferenceQueue.html
By providing a ReferenceQueue when we create a Reference then the GC will add
the Reference to the Queue when it collects the referent.
We can then monitor the queue with a new thread on the blocking queue.remove()
call.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project: http://qpid.apache.org
Use/Interact: mailto:[email protected]