Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EclipseLink » Eclipselink Cache objects filling the memory(memory leak)
Eclipselink Cache objects filling the memory [message #1864785] Tue, 09 April 2024 15:39
Alfonso Luna is currently offline Alfonso LunaFriend
Messages: 14
Registered: March 2010
Junior Member
Hi:

I recently upgraded from Eclipselink 2.6 to 4.0.2. I need to update the application to use jakarta library. I started getting my application very laggy after about 24 running and getting "java.lang.OutOfMemoryError: GC overhead limit exceeded" in the end.

I set up GC logs and noticed that memory was being reduced little by little until GC stops being able to free memory and triggers the error.

After dumping memory to a file and using Visual VM I see several millions of "org.eclipse.persistence.internal.indirection.UnitOfWorkQueryValueHolder" objects and cache items.

I am not sure if this is some kind of memory leak related to Eclipselink library or it is something that I am doing wrong with my application. I always free EntityManager objects every transaction. I've been running my application for several years and if there was a memory leak this is the fist time I noticed, this is why I think there must be related with the software upgrade somehow.

Thanks in advance.



attachments: GC use graph and visual VM objects screenshot.
Previous Topic:Concurrently open statements:
Next Topic:Eclipselink4.0.2 jar compatibility queries
Goto Forum:
  


Current Time: Tue Jan 14 19:01:34 GMT 2025

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

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

Back to the top