qaware / collection-cacheable-for-spring

Spring cache extension for putting a whole collection of entities as single cache items
Apache License 2.0
60 stars 9 forks source link

Memory leakage in integration tests #19

Closed jaimearroyo7 closed 2 years ago

jaimearroyo7 commented 2 years ago

Hello again!

After running several integration tests in a springboot application using the cachecollection annotation, i get OutOfMemory exceptions. If I run the tests one by one they all pass so I guess there is something accumulating with each test.

Do you know of any possible memory leakage of the library or how tests deal with caches. I get the error even when "disabling" caching for tests!

Thank you very much!

neiser commented 2 years ago

Hi, can you create a minimal working example reproducing the memory leak? Can you just remove the implementation (just keep -api package to keep your code compiling) and check if the memory leak is gone? Please elaborate,maybe I'm able to guess then what the problem might be. Bonus points if you pull thread dumps and analyze them.

jaimearroyo7 commented 2 years ago

Nevermind! It was my fault. I'm using it now properly and its giving great performance!!