-
1. Re: OutOfMemory with Infinispan 5.3.0 in glassfish v3 cluster
dan.berindei Oct 24, 2013 9:27 AM (in response to infinispan_user0815)From your question I understand that you use a single cache and you don't restart it, but from the snapshot you attached, it looks like thread __ejb-thread-pool13 accessed at least 20 different caches. If it would be possible to keep using the same cache, without restarting it, I think that should solve your problem.
Note that ISPN-2372 is only relevant when the cache is restarted often: on restart, a new AbstractJBossMarshaller instance was created, but the thread-local PerThreadInstanceHandler instances were not discarded.
On the other hand, it looks like the fix for ISPN-2372 was indeed incomplete. We now clear the references from the thread-local marshallers to the cache itself, so it can be garbage-collected, but we don't clear the marshallers or their instance caches. Looks like your values' object graph is very large, and the cached marshallers are using up a lot of memory that could be garbage-collected (assuming the cache was indeed restarted and only one cache instance is running now). I've created [ISPN-3659] Cache stop should clear thread-local ExtendedRiverMarshaller or their instance caches to address this.
-
2. Re: OutOfMemory with Infinispan 5.3.0 in glassfish v3 cluster
infinispan_user0815 Nov 5, 2013 9:04 AM (in response to dan.berindei)Thank you for your help and sorry for the late answer. Our application which uses Infinispan as embedded cache solution uses not only one cache but multiple caches (in this case at least 20 different caches). These caches are not restarted so if I understood everything right, then ISPN-2372 is not the same issue that we are facing in our case, right? Do you know any other points that we can check in our application or our implementation where we are using the caches/Infinispan so that we can get a solution for our problem?
-
3. Re: OutOfMemory with Infinispan 5.3.0 in glassfish v3 cluster
infinispan_user0815 Nov 22, 2013 4:53 AM (in response to infinispan_user0815)Since I still have to analyse and fix the problem, but couldn't find any soltions or further hints, I will ask again if nobody is out there who has probably the same problem or maybe could help me or give me further hints about what I can do to get a solution or find the cause of my issue?
-
4. Re: OutOfMemory with Infinispan 5.3.0 in glassfish v3 cluster
hoffmeij Jan 20, 2015 10:24 AM (in response to infinispan_user0815)Hi,
Did you find a solution for this? Did you figure out if this is a error in infinspan or a design error?
Im having the exact same problem in my application and im although still using Infinispan Version 5.3.0 final and glassfish 3.1.2.
Any help with this would be great!!