Bugs item #703183, was opened at 2003-03-13 20:02
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=376685&aid=703183&group_id=22866
Category: JBossMQ
Group: None
Status: Open
>Resolution: Fixed
Priority: 5
Submitted By: john hutchinson (jamoville)
>Assigned to: Adrian Brock (ejort)
Summary: oil2 memory problem
Initial Comment:
The oil2SocketHandler class is allocating hashmap$entry
objects without cleaning them up. Specifically the
registerResponseSlot method and pumpMessages are
cloning a hashmap object then adding or removing an
object as seen here:
HashMap newMap = (HashMap) responseSlots.clone();
newMap.put(request.requestId, responseSlot);
responseSlots = newMap;
This results in an exponetial increase in HashMap$Entry
objects that can easily be view through something such
as Optimizit. You can also see this on the task
manager. As you send and receive messages you will see
the memory just continue to grow. I changed the above
code in the registerResponseSlot method to:
responseSlots.put(request.requestId, responseSlot);
and changed the pumpMessages method to:
responseSlots.remove(response.correlationRequestId);
This change requires a synch block to be placed around
the iterator in the pumpMessages method like so:
synchronized(responseSlotsMutex)
{
HashMap snapShot = responseSlots;
if
{
while
{
}
}
}
This will eliminate the concurrentAccess exception
from occuring because of the removal of the clone.
These changes completely removed the memory issue.
----------------------------------------------------------------------
>Comment By: Adrian Brock (ejort)
Date: 2003-04-02 16:29
Message:
Logged In: YES
user_id=9459
Fixed in 3.2
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=376685&aid=703183&group_id=22866
-------------------------------------------------------
This SF.net email is sponsored by: ValueWeb:
Dedicated Hosting for just $79/mo with 500 GB of bandwidth!
No other company gives more support or power for your dedicated server
http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development