LRU itemRetrieved lock?
Antonio Muñoz <[email protected]>
| Newsgroups | gmane.comp.java.open-symphony.os-cache |
|---|---|
| Message-ID | <008e01c3d9ca$eff92690$87100280@ACAMUNOZ> |
Hi everyone,
I have got some locks over my application threads when they are trying to exceute:
at com.opensymphony.oscache.base.algorithm.LRUCache.itemRetrieved(LRUCache.java:132)
at com.opensymphony.oscache.base.algorithm.AbstractConcurrentReadCache.get(AbstractConcurrentReadCache.java:737)
at com.opensymphony.oscache.base.Cache.getCacheEntry(Cache.java:594)
at com.opensymphony.oscache.base.Cache.getFromCache(Cache.java:227)
at com.opensymphony.oscache.base.Cache.getFromCache(Cache.java:202)
at com.opensymphony.oscache.general.GeneralCacheAdministrator.getFromCache(GeneralCacheAdministrator.java:147)
The lock problem remains in one of these threads witch get access to the method, and lock its execution at
at java.util.HashMap.rehash(HashMap.java:292)
at java.util.HashMap.put(HashMap.java:344)
at org.apache.commons.collections.SequencedHashMap.put(Unknown Source)
at com.opensymphony.oscache.base.algorithm.LRUCache.itemRetrieved(LRUCache.java:133)
at com.opensymphony.oscache.base.algorithm.AbstractConcurrentReadCache.get(AbstractConcurrentReadCache.java:737)
at com.opensymphony.oscache.base.Cache.getCacheEntry(Cache.java:594)
at com.opensymphony.oscache.base.Cache.getFromCache(Cache.java:227)
at com.opensymphony.oscache.base.Cache.getFromCache(Cache.java:202)
at com.opensymphony.oscache.general.GeneralCacheAdministrator.getFromCache(GeneralCacheAdministrator.java:147)
... and all threads are waiting this one to end.
We are using JDK 1.3.1.
Would appreciate if someone could have any suggestion about this problem.
Thanks.
A. Muñoz