quality@glassfish.java.net

Re: Increasing Java Heap Size on Mac

From: Jagadesh Babu Munta <Jagadesh.Munta_at_Sun.COM>
Date: Wed, 25 Apr 2007 12:26:09 -0700

Hi Deepa,

The following 2 things may help you.

1) If the error is coming from the test console and if you are using
ANT, then set the following environment variable and increase the heap
(say 1GB)

setenv ANT_OPTS -Xmx1024m

2) If the error is coming from the GlassFish (see the domain's
server.log), then increase the heap size using admin console (jvm options)
or by editing domains/domain/config/domain.xml .

        <jvm-options>-Xmx512m</jvm-options>


Thanks.
-- Jagadesh



Deepa Singh wrote:
> Hi All,
> I am trying to run a simple J2EE test on a Mac machine. I got
> java.lang.OutOfMemoryError: Java Heap space.
> I simply start GlassFish application server, start JavaDB and ran my
> test. Any ideas how do I go about it?
> Thanks
> -Deepa
>