Dspace Fixed

Spent considerable time yesterday and today watching and analyzing output from the lsof command, which showed a mess of  open assettstore files that never seemed to close.

After repeated writings to the Dspace-tech community, I finally received this from Richard Rogers

I took a quick look through the code, and did note one oddity:
a file stream used in thumbnail generation is not explicitly closed.
It shouldn’t matter, since locally scoped file pointers ought to get
closed when garbage collected. But not knowing the details of how
objects are cached in Tomcat, I can’t say with 100% certainty it’s not a
leak. You could – if you felt adventurous – add the line:


after the line:

buf = ImageIO.read(is);

in the ‘getScalingAttr’ method in

My investigations yesterday also lead me to ItemListTag.java , but I focused on getThumbMarkup and didn’t see the ImageIO.read . Then again, even if I did, my reading level of Java wouldn’t have been sufficient to fix it.

Sure enough, problem fixed.

About Wesley Wright

Born on a mountain top near New York City, Craziest state in the land of the pretty. Raised in the woods so's he knew every tree, Killed him a bear when he was only three.
This entry was posted in Dspace, Projects. Bookmark the permalink.

Leave a Reply