I crossed somewhere that the default size of Java heap is 16MB. You will
need to use the command parameter to increase the max. heap size. But I
have not found a development tool that I can set the parameter in advance.
Does anyone have better luck?

Thanks!




At 08:18 AM 7/19/2001 -0600, you wrote:
>Remember, you can always give the VM more memory to work with by using
>the -Xmx# parameter.  This increases the heap available to the VM.  I don't
>know the default value the VM receives when it starts up without the -X
>param, but it's a modest amount.  Try this:
>
>java -Xms256 <your app>
>
>Assuming, of course, that you've got the 256 Megs you can give the VM.
>
>You also may want to look at Runtime.freeMemory() and Runtime.totalMemory().
>
>For fun, you might want to include
>...\jdk1.3\demo\jfc\Java2D\src\MemoryMonitor.java in your project.
>
>
>----- Original Message -----
>From: "John Barreto" <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Sent: Wednesday, July 18, 2001 6:51 PM
>Subject: [JAVA3D] array/memory limits
>
>
> > Hi everybody,
> >
> > I think I've hit a wall in writing a simple Java3D program.  I am getting
>an error:
> >
> > Exception in thread "main" java.lang.OutOfMemoryError
> >
> > My question is: what is the largest possible array size I can declare in
>Java?
> >
> >
>===========================================================================
> > To unsubscribe, send email to [EMAIL PROTECTED] and include in the
>body
> > of the message "signoff JAVA3D-INTEREST".  For general help, send email to
> > [EMAIL PROTECTED] and include in the body of the message "help".
>
>
>_________________________________________________________
>Do You Yahoo!?
>Get your free @yahoo.com address at http://mail.yahoo.com
>
>
>===========================================================================
>To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
>of the message "signoff JAVA3D-INTEREST".  For general help, send email to
>[EMAIL PROTECTED] and include in the body of the message "help".

Lan Wu-Cavener
Research Associate and Programmer
Dept. of Landscape Architecture

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to