Eclipselink Cache objects filling the memory [message #1864785] |
Tue, 09 April 2024 15:39 |
Alfonso Luna 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.
|
|
|
Powered by
FUDForum. Page generated in 0.06457 seconds