Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Tomcat Users »

Antwort: [OFF-TOPIC] ObjectOutputStream keeping handles

Ulrich Kleeberger

2004-01-19



hi yoav,

have you tried java.io.ObjectOutputStream.reset()?

uli




                                                                                         
              "Shapira, Yoav"                                                                
              <Yoav.Shapira@(protected)>                
              .com>             Kopie:                                                      
                              Thema:   [OFF-TOPIC] ObjectOutputStream keeping handles                    
              16.01.04 18:01                                                                  
              Bitte antworten                                                                
              an "Tomcat Users                                                                
              List"                                                                        
                                                                                         
                                                                                         





Howdy,
Has anyone bumped into an issue where java.io.ObjectOutputStream keep
references to serialized objects until the stream is closed, thereby
preventing the objects from being garbage-collected? I know I can get
around this by closing and reopening the stream after every write, but
that seems to be a high-overhead approach. Any other ideas?
writeUnshared() perhaps?

Yoav Shapira
Millennium ChemInformatics





This e-mail, including any attachments, is a confidential business
communication, and may contain information that is confidential,
proprietary and/or privileged. This e-mail is intended only for the
individual(s) to whom it is addressed, and may not be saved, copied,
printed, disclosed or used by anyone else. If you are not the(an) intended
recipient, please immediately delete this e-mail from your computer system
and notify the sender. Thank you.


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
For additional commands, e-mail: tomcat-user-help@(protected)







---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
For additional commands, e-mail: tomcat-user-help@(protected)



©2008 junlu.com - Jax Systems, LLC, U.S.A.