*
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Performance
Bookmark "Java Heap Problem" Watch "Java Heap Problem" New topic
Author

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
Hi,

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.

Stefan
Ilja Preuss
author
Sheriff

Joined: Jul 11, 2001
Posts: 14112
Search for the Error Id at http://bugs.sun.com/bugdatabase/index.jsp


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)
 
Don't get me started about those stupid light bulbs.
 
subject: Java Heap Problem
 
Similar Threads
JDBC:ODBC Native Code errors,please help!
unexpected exception has been detected in native code outside the VM
stuck with HotSpot Virtual Machine Error, Internal Error in struts
1.4.2_06 JRE on Win98 freezes
Exception when calling a java method in JNI