Skip to main content



      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 12:17 Go to next message
Eclipse UserFriend
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] Tue, 16 July 2013 20:37 Go to previous message
Eclipse UserFriend
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: Mon Jun 30 18:02:58 EDT 2025

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

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

Back to the top