Eclipselink freezes fetching data from cache

Eclipselink sometimes freezes when I try to get some data (CPU usage is 100%). While debugging the code, I can see that the java vm hangs while doing the HashMap.get (Object) operation ( here is a link to stackTrace) and I will assume it is a known concurrency issue on HashMap (see this java bug report ). In particular, I can see that the cacheKeys value for org.eclipse.persistence.internal.identitymaps.UnitOfWorkIdentityMap is a HashMap instance and not a ConcurrentHashMap. Could this be the reason for the hang in my code? How can I solve this?

To better explain the issue, a hang occurs when the jackson library serializes a single JPA object, specifically when serializing a loaded LAZY list of an object rendered as @ManytoMany.

+3
java hashmap caching concurrency eclipselink


source to share


No one has answered this question yet

Check out similar questions:

3393
Create ArrayList from array
2108
How can I call one constructor from another in Java?
1554
Disable Chrome cache for website development
1398
How do we control web page caching in all browsers?
1001
Is Safari iOS 6 caching $ .ajax results?
951
How do I force the browser to reload the cached CSS / JS files?
683
What is "caching" code?
294
The JPA hashCode () / equals () dilemma
2
Eclipselink Lazy Download
1
Detaching objects in EclipseLink



All Articles
Loading...
X
Show
Funny
Dev
Pics