geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ted Kirby <ted.ki...@gmail.com>
Subject Re: java.lang.OutOfMemoryError: PermGen space
Date Mon, 18 Oct 2010 16:50:08 GMT
Thanks Daniel.  I added -d32 to MAVEN_OPTS, but got:
Cannot run Java in 32 bit mode. Continuing in 64 bit mode.

In fact:

~/svn/gdvtls/eclipse-plugin/trunk/testsuite/launcher $ java -d32 -version
Cannot run Java in 32 bit mode. Continuing in 64 bit mode.
java version "1.6.0_20"
Java(TM) SE Runtime Environment (build 1.6.0_20-b02-279-9M3165)
Java HotSpot(TM) 64-Bit Server VM (build 16.3-b01-279, mixed mode)

A google search indicates that Java 6 is 64-bit only on Mac at the moment.  :-(
http://stackoverflow.com/questions/607945/installing-java-6-on-mac-os/1381454#1381454
I am running OS X 10.5.8.

On Mon, Oct 11, 2010 at 11:41 PM, dsh <daniel.haischt@googlemail.com> wrote:
> You have to use java -d32 on a Mac to force usage of a 32bit data model.
>
> On Tue, Oct 12, 2010 at 12:48 AM, Ted Kirby <ted.kirby@gmail.com> wrote:
>> On Mon, Oct 11, 2010 at 7:52 AM, Kevan Miller <kevan.miller@gmail.com> wrote:
>>>
>>> On Oct 10, 2010, at 1:04 AM, mohamed.chebbi wrote:
>>>
>>>> hi
>>>>
>>>> i'm tring to build geronimo from trunc
>>>>
>>>> but i still get :
>>>>
>>>> java.lang.OutOfMemoryError: PermGen space
>>>>
>>>>
>>>> with mvn clean install
>>>>
>>>>
>>>> i have MAVEN_OPTS set to:
>>>>
>>>> %echo $MAVEN_OPTS
>>>> -Xms256m -Xmx512m -XX:MaxPermSize=128m
>>>
>>> Mohamed,
>>> Please don't post the same question to both our dev list and our user list. Ted
posted on the user list the following:
>>>
>>> On Oct 10, 2010, at 9:23 AM, Ted Kirby wrote:
>>>
>>>> I recently updated
>>>> https://cwiki.apache.org/GMOxDEV/building-apache-geronimo.html for
>>>> this to say:
>>>>
>>>> For 3.0, use at least:
>>>>
>>>>    MAVEN_OPTS="-Xmx768m -XX:MaxPermSize=200m"
>>>
>>> I build with the following options using maven 2.2.1:
>>>
>>> MAVEN_OPTS="-Xmx1024m -Xms512m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError"
>>>
>>> I expect that my settings are larger than need be, but they work...
>>>
>>> --kevan
>>
>> Last week, I could build on OK on Windows and Mac.
>>
>> Today on mac, MaxPermSize=256m did not work, as it did last week, but
>> MaxPermSize=512m did work for me.
>> It seems memory requirements have grown recently?
>>
>> MAVEN_OPTS="-Xmx768m -XX:MaxPermSize=200m" works for Jarek on a 32-bit
>> linux system.
>>
>> I have a 64-bit mac.  Jarek made a good suggestion to try to run in
>> 32-bit mode, as that would use about 1/3 less real memory.  Anyone
>> know how to run the build in 32-bit mode?
>>
>> My windows story today is perplexing. I set (and verify)
>> MAVEN_OPTS=-Xmx1G -XX:MaxPermSize=512m in the command prompt window,
>> and in the system environment variables.  I get a build failure, and
>> when I show MAVEN_OPTS in the command window, it is set to
>> MAVEN_OPTS=-Xmx512m -XX:MaxPermSize=128m!!
>> The build is failing in plugins/j2ee/geronimo-j2ee while running the tests.
>> When skipping tests, I get the same symptoms, but the build fails at
>> plugins/bval/geronimo-bval
>> Any ideas?  Can others build on windows?
>>
>> Thanks,
>> Ted
>>
>

Mime
View raw message