• Post Reply Bookmark Topic Watch Topic
  • New Topic

Memory leak in ObjectOutputStream  RSS feed

 
sivaraman cj
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
am having one servlet which returns an hashtable using objectoutputstream.but we dont call close method after calling writeobject method to flush the hashtable.Will the hashtable be garbage collected.
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
 
Vlado Zajac
Ranch Hand
Posts: 245
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It won't be eligible for GC until call to reset() or close() method.

http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4363937
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!