This will hold references to every object you persist/merge into
your entity manager between calls to clear. It has no limit on its
size. The spec does not allow us to arbitrarily drop objects from
it, the spec expects users to manage it.
I am not certain why it is attached to your HttpSessions. I would
guess that relates in someway to where you are injecting it.
-Tom
On 03/09/2013 12:35 PM, Markus Eisele
wrote:
Thanks Tom,
You're saying that this contains the complete first
level cache? Why do I find that attached to my HttpSessions? Can
you elaborate a bit more?
What is the maximum size this can grow to?
The
RepeatableWriteUnitOfWork is the object that backs an
EntityManager. One thing you could do to reduce the size of
it is to clear you entityManager more often.
-Tom
On 03/09/2013 12:24 PM, Markus Eisele wrote:
Hi all,
I'm analyzing a Heap Dump at the moment. It
seems as if we have some big HttpSessions.
The actual entities which get displayed on the JSF views
are let's say about 400k ... A corresponding
RepeatableWriteUnitOfWork object roughly 13.5 MB.
Is there any documentation available on that 'thing'?
What is it and what does it do?
Any hints for what to watch out and find the reasons are
greatly appreciated.