hi,

i dynamically change the repository in my webapp depending on user requests.
these changes are made per thread. making these changes using the metadata
manager, a huge memory leak occurs [it probably is huge because my
repository file(s) are huge].

if i do not make the changes per thread, but globally, there are no
problems.
i tested the serialization of the descriptorrepository by using the
org.apache.commons.lang.SerializationUtils utility in a testclass myself,
but this does not pose any problems, no leaks occur.
the leak seems to occur when setting the changed repository (on a per thread
basis) in combination with the ThreadLocal variable declaration (in
MetadataManager). the resources of the copied global repository are never
freed and never fall subject to garbage collection. within notime i am
through 512MB of memory.

can anybody confirm this, is anybody working on this?

i'm looking into this, and will let you know when i know more about a fix,
but any help is welcome!

for me this is a showstopper, which is kind of a problem because it occurs
in a live hosted webapp.

Roger Janssen


*************************************************************************
The information contained in this communication is confidential and is
intended solely for the use of the individual or entity to  whom it is
addressed.You should not copy, disclose or distribute this communication 
without the authority of iBanx bv. iBanx bv is neither liable for 
the proper and complete transmission of the information has been maintained
nor that the communication is free of viruses, interceptions or interference.

If you are not the intended recipient of this communication please return
the communication to the sender and delete and destroy all copies.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to