Bug #11

IdentifierCacheImpl takes to long to complete cleanCache

Added by S M 3370 days ago.

Status:New Start:04/29/2009
Priority:Normal Due date:
Assigned to:- % Done:


Category:- Spent time: -
Target version:-


When large numbers of sessions are recorded in ESOE the cleanup code in public int cleanCache(int age) blocks for a long period of time as the map is synchronized and lots of processing going on.

This causes all other clients connecting to ESOE to be blocked.

Suggest change to ConcurrentHashMap<K,V> http://java.sun.com/j2se/1.5.0/docs/api/java/util/concurrent/ConcurrentHashMap.html

Can also therefore remove Collections.synchronizedMap specifier.

Additionally it may be worthwhile exposing a field for replicators to update so that multiple nodes are not attempting to call public int cleanCache(int age)

Also available in: Atom PDF