Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EclipseLink » Out of memory with level 2 cache enabled(Out of memory with level 2 cache enabled)
Out of memory with level 2 cache enabled [message #1069815] Tue, 16 July 2013 16:17 Go to next message
Deepak Somaiya is currently offline Deepak SomaiyaFriend
Messages: 4
Registered: September 2011
Junior Member
we have recently enabled level 2 cache with following setting and during runtime we are seeing JVM out of memory.


<property name="eclipselink.cache.type.default" value="Weak" />
<property name="eclipselink.cache.size.default" value="5000" />
<property name="eclipselink.cache.shared.default" value="false" />

Ideally, we are using weak cache and based on the documentation JPA will give up the cache to garbage collector and JVM should not run out of memory. Is my understanding right?
Re: Out of memory with level 2 cache enabled [message #1069955 is a reply to message #1069815] Wed, 17 July 2013 00:37 Go to previous message
Deepak Somaiya is currently offline Deepak SomaiyaFriend
Messages: 4
Registered: September 2011
Junior Member
correction , settings in persistence.xml is

<property name="eclipselink.cache.type.default" value="Weak" />
<property name="eclipselink.cache.size.default" value="5000" />


Previous Topic:Nested Embeddable bug?
Next Topic:Changing from EL 2.1.3 to 2.5.0
Goto Forum:
  


Current Time: Thu Nov 27 13:36:08 GMT 2014

Powered by FUDForum. Page generated in 0.01584 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software