Object reference, potential memory leak

From: Mattias Arbin <Mattias.Arbin@xxx.se>
Date: Mon May 30 2005 - 00:14:42 PDT

I am using Hessian to log java objects to files.
Logging is made over long periods using the same HessianOutput. This means
that the object reference list will constantly grow, which will eventually
lead to OutOfMemory.
I know I might not be using Hessian as it was initially intended, but I
understand that a lot of people have started using Hessian as a
serialization tool.
I have implemented a version of HessianOutput with the following methods:

public boolean isObjectRefsEnabled();
public void setObjectRefsEnabled(boolean refsEnabled);

This means that it is possible to turn off the use of object references to
avoid memory leak.

Would love to see this feature in a future version of Hessian.

Thanks,
Mattias

Mattias Arbin, Carmenta AB
Phone: 08 612 7125 (International: +46 8 612 7125)
Mobile phone: 0730 20 4343 (International: +46 730 20 4343)
http://www.carmenta.se
 
Received on Mon 30 May 2005 00:14:42 -0700

This archive was generated by hypermail 2.1.8 : Thu Sep 28 2006 - 20:16:41 PDT