Hello,

I am new in using POI and I am wondering how resources are released when I open 
a new workbook using
                hssfWorkbook = new HSSFWorkbook(new 
FileInputStream(templateFolder+"/"+templateName));

I do not see any close() method. It means that the xsl file is released when 
the workbook is killed by the garbage collector? Is it a copy? I have a large 
file to open, hssWorkbook is a field of a class I keep during all the session. 
Is it a mistake? My java process seems to consume a lot of RAM.

One other question, I open several workbooks, and I suspect the POI processes 
to run iexplore that consumes a*lot* of CPU. Is there a link?

Thank's


The information in this e-mail is confidential. The contents may not be 
disclosed or used by anyone other than the addressee. Access to this e-mail by 
anyone else is unauthorised.
If you are not the intended recipient, please notify Airbus immediately and 
delete this e-mail.
Airbus cannot accept any responsibility for the accuracy or completeness of 
this e-mail as it has been sent over public networks. If you have any concerns 
over the content of this message or its Accuracy or Integrity, please contact 
Airbus immediately.
All outgoing e-mails from Airbus are checked using regularly updated virus 
scanning software but you should take whatever measures you deem to be 
appropriate to ensure that this message and any attachments are virus free.

Reply via email to