File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Performance and the fly likes Java Heap Problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Performance
Bookmark "Java Heap Problem" Watch "Java Heap Problem" New topic

Java Heap Problem

Pradeep Kadambar
Ranch Hand

Joined: Oct 18, 2004
Posts: 148
I have a data intensive operation which has to make calculations on the data in the memory and then generate files containing data and their meta data. But when I execute this operation the program fails with the message. Any solution ( Increase VM size )

Stefan Krompass
Ranch Hand

Joined: Apr 29, 2004
Posts: 75

if this is really a bug, you could try newer Java-versions (the most up-to-date version of 1.4.2 AFAIK is 1.4.2_06). You might as well search the bug database for any hints.

Ilja Preuss

Joined: Jul 11, 2001
Posts: 14112
Search for the Error Id at

The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
Sudhir V
Ranch Hand

Joined: Dec 25, 2002
Posts: 143
You can increase the VM space consumption by specifying the -XmxMEM argument in the VM Argument list. For example if you want the VM to use 256mb of memory then u say -Xmx256m. The default memory allocation is 64mb.

Sudhir V<br />(SCJP 1.2, SCWCD, OCA, SCBCD)
I agree. Here's the link:
subject: Java Heap Problem
It's not a secret anymore!