File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Getting "java.lang.OutOfMemoryError: PermGen space" exception while reading xlsx file using POI 3.7

 
Pooja De
Greenhorn
Posts: 1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is very intermittent problem and does not occur regularly.

I am reading an xlsx file using POI 3.7 and I have code as follows,


When I do xssfReader.getStylesTable() I get a stacktrace as follows,



I tried searching for this on forums and on Google but did not come across anyone who has run into this. Does anyone know why I got this and how I should proceed with a resolution?

Thanks.
 
Tim Moores
Bartender
Pie
Posts: 2499
10
  • 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
POI needs a lot of memory when dealing with sizable files. Try increasing the Permgen space using something like "XX:MaxPermSize=128m".
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic