User 276402c609
28-12-2011 14:35:16
We are using JChemBase in our web application. After upgrade to 5.7.0 version we found that on Linux platform the web app randomly crashes with error "too many opened files" (as temporary solution we increased default 1024 value to 8192). When we checked the list of opened files, we found that they are located in tomcat/temp directory with file names like imageio9068025691887445724.tmp and so on. As these files contains images of molecules, we believe that this is somehow ralated to our molecule image servlet and code line: servletoutputstream.write(molecule.toBinFormat("jpeg:w400,h400,Q95,#ffffff,wireframe")). The question - is it possible that method toBinFormat generates these temp files and how to close them (as toBinFormat returns byte[])?