CPU pegged due the the Java garbage collector trying to clean up unused
memory. The out of memory error is raised when the garbage collector cannot
free the necessary memory for new objects to be allocated.

Have you read the FAQ yet? https://poi.apache.org/faq.html#faq-N10165

On Dec 2, 2016 00:11, "[email protected]" <[email protected]> wrote:

> Hi!
>
> I am trying to read a xlsx-file whose size is 7.3M with POI version 3.15,
> here is the code:
>
>
> *InputStream is = new FileInputStream(new File(path));//line 1Workbook book = 
> new XSSFWorkbook(in);// line 2*
> When running to line 2,the memory of javaw rised
> violently from 700M to 1200M,cpu from 10% to 90%,the following
> is the screenshot of memory dump:
>
> In the picture, the object of Xobj$AttrXobj has more than 5 millions  so
> that it occupy the most of memory,but the file size is just 7.3M.
> Can someone help me?
>
>
>
>
>                                   Thank you!
>
> ------------------------------
> [email protected]
>

Reply via email to