{"id":302,"date":"2005-10-19T14:02:09","date_gmt":"2005-10-19T18:02:09","guid":{"rendered":"http:\/\/www.uvm.edu\/~waw\/blog\/?p=302"},"modified":"2005-10-19T14:02:09","modified_gmt":"2005-10-19T18:02:09","slug":"dspace-fixed","status":"publish","type":"post","link":"https:\/\/blog.uvm.edu\/waw\/2005\/10\/19\/dspace-fixed\/","title":{"rendered":"Dspace Fixed"},"content":{"rendered":"<p>Spent considerable time yesterday and today watching and analyzing output from the <span style=\"font-weight: bold\">lsof<\/span> command, which showed a mess of&nbsp; open assettstore files that never seemed to close.<\/p>\n<p>After repeated writings to the Dspace-tech community, I finally received this from Richard Rogers <\/p>\n<div style=\"margin-left: 40px\">I took a quick look through the code, and did note one oddity:<br \/>a file stream used in thumbnail generation is not explicitly closed.<br \/>It shouldn&#8217;t matter, since locally scoped file pointers ought to get<br \/>closed when garbage collected. But not knowing the details of how<br \/>objects are cached in Tomcat, I can&#8217;t say with 100% certainty it&#8217;s not a<br \/>leak. You could &#8211; if you felt adventurous &#8211; add the line:<\/p>\n<p>is.close();<\/p>\n<p>after the line:<\/p>\n<p>buf = ImageIO.read(is);<\/p>\n<p>in the &#8216;getScalingAttr&#8217; method in<br \/>&nbsp;org.dspace.app.webui.jsptag.ItemListTag.java<\/p>\n<\/div>\n<p>My investigations yesterday also lead me to ItemListTag.java , but I focused on getThumbMarkup and didn&#8217;t see the ImageIO.read . Then again, even if I did, my reading level of Java wouldn&#8217;t have been sufficient to fix it.<\/p>\n<p>Sure enough, problem fixed.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Spent considerable time yesterday and today watching and analyzing output from the lsof command, which showed a mess of&nbsp; open assettstore files that never seemed to close. After repeated writings to the Dspace-tech community, I finally received this from Richard &hellip; <a href=\"https:\/\/blog.uvm.edu\/waw\/2005\/10\/19\/dspace-fixed\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":7,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[41847,6517],"tags":[],"class_list":["post-302","post","type-post","status-publish","format-standard","hentry","category-dspace","category-projects"],"_links":{"self":[{"href":"https:\/\/blog.uvm.edu\/waw\/wp-json\/wp\/v2\/posts\/302","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.uvm.edu\/waw\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.uvm.edu\/waw\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.uvm.edu\/waw\/wp-json\/wp\/v2\/users\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.uvm.edu\/waw\/wp-json\/wp\/v2\/comments?post=302"}],"version-history":[{"count":0,"href":"https:\/\/blog.uvm.edu\/waw\/wp-json\/wp\/v2\/posts\/302\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.uvm.edu\/waw\/wp-json\/wp\/v2\/media?parent=302"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.uvm.edu\/waw\/wp-json\/wp\/v2\/categories?post=302"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.uvm.edu\/waw\/wp-json\/wp\/v2\/tags?post=302"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}