File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Tomcat and the fly likes java heap space error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "java heap space error" Watch "java heap space error" New topic

java heap space error

Yogesh Bali

Joined: May 29, 2009
Posts: 22
Dear Friends,

I am trying to excute the crystal report by exporting it to excel format using eclipse IDE. The reports viewed perfectly well in other formats, but when i click excel, "java heap space" error message gets displayed.

I tried with increasing the size of tomcat by "-Xms512m -Xmx512m ", remove the report at the end of my function, called clientdoc.close(), in order to solve this error. but its still appearing. please help and provide me the direction. Thanking you.

Yogesh Bali
Kees Jan Koster
JavaMonitor Support

Joined: Mar 31, 2009
Posts: 251
Dear Yogesh,

Make a Java heap dump at the time the exception happens en analyse that to see what the memory is being used for.

Here is how to enable dumping your heap when an OOME happens:

Kees Jan

Java-monitor, JVM monitoring made easy <- right here on Java Ranch
Srinivasan Elangovan

Joined: Apr 11, 2012
Posts: 3

Try this Resolved Post.

I agree. Here's the link:
subject: java heap space error
It's not a secret anymore!