Google Answers Logo
View Question
 
Q: Increassing the heap size of the Java Virtual Machine ( No Answer,   1 Comment )
Question  
Subject: Increassing the heap size of the Java Virtual Machine
Category: Computers > Software
Asked by: oneshfisher-ga
List Price: $5.00
Posted: 09 May 2005 20:55 PDT
Expires: 10 May 2005 21:24 PDT
Question ID: 519797
I need specific step by step instructions (consider me a computer
idiot) on how to increase the size of my desktop heap size in the Java
Virtual machine.  When I run a specific Java application it runs out
of memory and gives me an error message.  I am running a pentium based
computer, windows XP home edition (service pack 2) and the JVM
1.4.2_03-b02.  I am not talking about a java applet in internet
explorer but a standalone java application (WEKA data mining
software).  I look forward to the answer.
Answer  
There is no answer at this time.

Comments  
Subject: Re: Increassing the heap size of the Java Virtual Machine
From: endersgame-ga on 10 May 2005 03:33 PDT
 
I'm pretty sure you can just do this with the -xmx option.  There's a
pretty simple example here:
http://java.sun.com/products/java-media/3D/forDevelopers/J3D_1_3_API/j3dguide/AppendixExamples.html

Specifically it says:
"Some of the example programs require a larger heap size (memory pool)
than the default provided by Java. To increase the maximum heap size
to 64 megabytes, run java with the "-Xmx64m" option. For example,

% java -Xmx64m HelloUniverse "

You should be able to replace 64m with whatever size memory heap you'd like.

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy