Re: LockManagerInMemoryImpl memory leak

Armin Waibel <[email protected]>
Newsgroups gmane.comp.jakarta.ojb.user
Message-ID <[email protected]>
Hi Bruno,

Bruno CROS wrote:
> Hi all,
> 
> Well, our team experiment some memory leaks using the LockManager in remote
> mode, with the servlet and so, the LockManagerRemoteImpl.
> 
> It seems that, after a while, in the LockManagerInMemoryImpl (use by
> LMRemoteImpl), some LockObject instances are stored in the static HashMap
> keyLockMap  whereas the static LinkedMap resourceLockMap no more contains
> references to that instances. What is sure, is that those locks never
> expire.
> 

I will try to reproduce your problem - stay tuned.

regards,
Armin

> It results that memory usage grows and LockManager server crashes with an
> OutOfMemoryException.
> 
> Using the last implementation of LMRemoteImpl, LMInMemoryImpl, LMServlet
> over OJB 1.0.4. JVM 1.4.
> 
> Thanks for any ideas.
> 
> Regards.
> 
> Bruno.
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.