Tuesday, June 10, 2003 01:00 PM
My application is a JMS client which uses SwiftMQ libraries to talk to the SwiftMQ server. I use a single connection and a single session. I keep the session alive for the life of my application and use it for sending all messages to the server. My application has been running for about 3 months now, and I have noticed an increase in the heap size. When I ran it through a profiler, I noticed that there were some MapMessageImpl objects hanging around. So, my question is, does the SessionImpl object hold on to the references of the MapMessageImpl even after the message has been delivered to the queue? If so, how can I prevent it from doing so?