You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@geronimo.apache.org by "mohamed.chebbi" <mh...@gmail.com> on 2010/10/10 07:04:39 UTC

java.lang.OutOfMemoryError: PermGen space

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



this is some logs :


[org.apache.geronimo.gbean.runtime.GBeanInstanceState] : GBeanInstanceState
for:
org.apache.geronimo.framework/j2ee-security/3.0-SNAPSHOT/car?configurationName=org.apache.geronimo.framework/j2ee-security/3.0-SNAPSHOT/car
State changed from stopped to starting
[org.apache.geronimo.kernel.config.Configuration] : Started configuration
org.apache.geronimo.framework/j2ee-security/3.0-SNAPSHOT/car
[org.apache.geronimo.gbean.runtime.GBeanInstanceState] : GBeanInstanceState
for:
org.apache.geronimo.framework/j2ee-security/3.0-SNAPSHOT/car?configurationName=org.apache.geronimo.framework/j2ee-security/3.0-SNAPSHOT/car
State changed from starting to running
[org.apache.geronimo.kernel.config.SimpleConfigurationManager] : Loaded
Configuration
org.apache.geronimo.framework/j2ee-security/3.0-SNAPSHOT/car?configurationName=org.apache.geronimo.framework/j2ee-security/3.0-SNAPSHOT/car
[org.apache.geronimo.gbean.runtime.GBeanInstanceState] : GBeanInstanceState
for:
org.apache.geronimo.framework/server-security-config/3.0-SNAPSHOT/car?configurationName=org.apache.geronimo.framework/server-security-config/3.0-SNAPSHOT/car
State changed from stopped to starting
[org.apache.geronimo.kernel.config.Configuration] : Started configuration
org.apache.geronimo.framework/server-security-config/3.0-SNAPSHOT/car
[org.apache.geronimo.gbean.runtime.GBeanInstanceState] : GBeanInstanceState
for:
org.apache.geronimo.framework/server-security-config/3.0-SNAPSHOT/car?configurationName=org.apache.geronimo.framework/server-security-config/3.0-SNAPSHOT/car
State changed from starting to running
[org.apache.geronimo.kernel.config.SimpleConfigurationManager] : Loaded
Configuration
org.apache.geronimo.framework/server-security-config/3.0-SNAPSHOT/car?configurationName=org.apache.geronimo.framework/server-security-config/3.0-SNAPSHOT/car
[org.apache.geronimo.gbean.runtime.GBeanInstanceState] : GBeanInstanceState
for:
org.apache.geronimo.framework/jmx-security/3.0-SNAPSHOT/car?configurationName=org.apache.geronimo.framework/jmx-security/3.0-SNAPSHOT/car
State changed from stopped to starting
[org.apache.geronimo.kernel.config.Configuration] : Started configuration
org.apache.geronimo.framework/jmx-security/3.0-SNAPSHOT/car
[org.apache.geronimo.gbean.runtime.GBeanInstanceState] : GBeanInstanceState
for:
org.apache.geronimo.framework/jmx-security/3.0-SNAPSHOT/car?configurationName=org.apache.geronimo.framework/jmx-security/3.0-SNAPSHOT/car
State changed from starting to running
[org.apache.geronimo.kernel.config.SimpleConfigurationManager] : Loaded
Configuration
org.apache.geronimo.framework/jmx-security/3.0-SNAPSHOT/car?configurationName=org.apache.geronimo.framework/jmx-security/3.0-SNAPSHOT/car
[org.apache.geronimo.system.configuration.DependencyManager] : did not find
geronimo-plugin.xml for bundle org.apache.geronimo.modules.geronimo-farm
[69]
[org.apache.geronimo.kernel.config.Configuration] : Started configuration
org.apache.geronimo.configs/plugin-farm-member/3.0-SNAPSHOT/car
[org.apache.geronimo.kernel.config.Configuration] : Stopping configuration
org.apache.geronimo.configs/plugin-farm-member/3.0-SNAPSHOT/car
[INFO]
------------------------------------------------------------------------
[ERROR] FATAL ERROR
[INFO]
------------------------------------------------------------------------
org.codehaus.classworlds.NoSuchRealmException: plexus.core
    at org.codehaus.classworlds.ClassWorld.getRealm(ClassWorld.java:128)
    at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:434)
    at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
ERROR: EventDispatcher: Error during dispatch. (java.lang.OutOfMemoryError:
PermGen space)
java.lang.OutOfMemoryError: PermGen space


-----
best reguards
-- 
View this message in context: http://apache-geronimo.328035.n3.nabble.com/java-lang-OutOfMemoryError-PermGen-space-tp1673171p1673171.html
Sent from the Users mailing list archive at Nabble.com.

Re: java.lang.OutOfMemoryError: PermGen space

Posted by Delos <da...@gmail.com>.
What's your maven version?

On Mon, Oct 11, 2010 at 1:56 AM, dsh <da...@googlemail.com> wrote:

> At OpenEJB we are using this setting, which turned out to be
> appropriate. Not sure about Geronimo...
>
> -Xmx512m -XX:PermSize=64m -XX:MaxPermSize=256m
>
> Cheers
> Daniel
>
> On Sun, Oct 10, 2010 at 7:04 AM, mohamed.chebbi <mh...@gmail.com>
> 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
> >
> >
> >
> > this is some logs :
> >
> >
> > [org.apache.geronimo.gbean.runtime.GBeanInstanceState] :
> GBeanInstanceState
> > for:
> >
> org.apache.geronimo.framework/j2ee-security/3.0-SNAPSHOT/car?configurationName=org.apache.geronimo.framework/j2ee-security/3.0-SNAPSHOT/car
> > State changed from stopped to starting
> > [org.apache.geronimo.kernel.config.Configuration] : Started configuration
> > org.apache.geronimo.framework/j2ee-security/3.0-SNAPSHOT/car
> > [org.apache.geronimo.gbean.runtime.GBeanInstanceState] :
> GBeanInstanceState
> > for:
> >
> org.apache.geronimo.framework/j2ee-security/3.0-SNAPSHOT/car?configurationName=org.apache.geronimo.framework/j2ee-security/3.0-SNAPSHOT/car
> > State changed from starting to running
> > [org.apache.geronimo.kernel.config.SimpleConfigurationManager] : Loaded
> > Configuration
> >
> org.apache.geronimo.framework/j2ee-security/3.0-SNAPSHOT/car?configurationName=org.apache.geronimo.framework/j2ee-security/3.0-SNAPSHOT/car
> > [org.apache.geronimo.gbean.runtime.GBeanInstanceState] :
> GBeanInstanceState
> > for:
> >
> org.apache.geronimo.framework/server-security-config/3.0-SNAPSHOT/car?configurationName=org.apache.geronimo.framework/server-security-config/3.0-SNAPSHOT/car
> > State changed from stopped to starting
> > [org.apache.geronimo.kernel.config.Configuration] : Started configuration
> > org.apache.geronimo.framework/server-security-config/3.0-SNAPSHOT/car
> > [org.apache.geronimo.gbean.runtime.GBeanInstanceState] :
> GBeanInstanceState
> > for:
> >
> org.apache.geronimo.framework/server-security-config/3.0-SNAPSHOT/car?configurationName=org.apache.geronimo.framework/server-security-config/3.0-SNAPSHOT/car
> > State changed from starting to running
> > [org.apache.geronimo.kernel.config.SimpleConfigurationManager] : Loaded
> > Configuration
> >
> org.apache.geronimo.framework/server-security-config/3.0-SNAPSHOT/car?configurationName=org.apache.geronimo.framework/server-security-config/3.0-SNAPSHOT/car
> > [org.apache.geronimo.gbean.runtime.GBeanInstanceState] :
> GBeanInstanceState
> > for:
> >
> org.apache.geronimo.framework/jmx-security/3.0-SNAPSHOT/car?configurationName=org.apache.geronimo.framework/jmx-security/3.0-SNAPSHOT/car
> > State changed from stopped to starting
> > [org.apache.geronimo.kernel.config.Configuration] : Started configuration
> > org.apache.geronimo.framework/jmx-security/3.0-SNAPSHOT/car
> > [org.apache.geronimo.gbean.runtime.GBeanInstanceState] :
> GBeanInstanceState
> > for:
> >
> org.apache.geronimo.framework/jmx-security/3.0-SNAPSHOT/car?configurationName=org.apache.geronimo.framework/jmx-security/3.0-SNAPSHOT/car
> > State changed from starting to running
> > [org.apache.geronimo.kernel.config.SimpleConfigurationManager] : Loaded
> > Configuration
> >
> org.apache.geronimo.framework/jmx-security/3.0-SNAPSHOT/car?configurationName=org.apache.geronimo.framework/jmx-security/3.0-SNAPSHOT/car
> > [org.apache.geronimo.system.configuration.DependencyManager] : did not
> find
> > geronimo-plugin.xml for bundle org.apache.geronimo.modules.geronimo-farm
> > [69]
> > [org.apache.geronimo.kernel.config.Configuration] : Started configuration
> > org.apache.geronimo.configs/plugin-farm-member/3.0-SNAPSHOT/car
> > [org.apache.geronimo.kernel.config.Configuration] : Stopping
> configuration
> > org.apache.geronimo.configs/plugin-farm-member/3.0-SNAPSHOT/car
> > [INFO]
> > ------------------------------------------------------------------------
> > [ERROR] FATAL ERROR
> > [INFO]
> > ------------------------------------------------------------------------
> > org.codehaus.classworlds.NoSuchRealmException: plexus.core
> >     at org.codehaus.classworlds.ClassWorld.getRealm(ClassWorld.java:128)
> >     at
> org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:434)
> >     at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> > ERROR: EventDispatcher: Error during dispatch.
> (java.lang.OutOfMemoryError:
> > PermGen space)
> > java.lang.OutOfMemoryError: PermGen space
> >
> >
> > best reguards
> > ________________________________
> > View this message in context: java.lang.OutOfMemoryError: PermGen space
> > Sent from the Users mailing list archive at Nabble.com.
> >
>



-- 
Best Regards,

Delos

Re: java.lang.OutOfMemoryError: PermGen space

Posted by dsh <da...@googlemail.com>.
At OpenEJB we are using this setting, which turned out to be
appropriate. Not sure about Geronimo...

-Xmx512m -XX:PermSize=64m -XX:MaxPermSize=256m

Cheers
Daniel

On Sun, Oct 10, 2010 at 7:04 AM, mohamed.chebbi <mh...@gmail.com> 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
>
>
>
> this is some logs :
>
>
> [org.apache.geronimo.gbean.runtime.GBeanInstanceState] : GBeanInstanceState
> for:
> org.apache.geronimo.framework/j2ee-security/3.0-SNAPSHOT/car?configurationName=org.apache.geronimo.framework/j2ee-security/3.0-SNAPSHOT/car
> State changed from stopped to starting
> [org.apache.geronimo.kernel.config.Configuration] : Started configuration
> org.apache.geronimo.framework/j2ee-security/3.0-SNAPSHOT/car
> [org.apache.geronimo.gbean.runtime.GBeanInstanceState] : GBeanInstanceState
> for:
> org.apache.geronimo.framework/j2ee-security/3.0-SNAPSHOT/car?configurationName=org.apache.geronimo.framework/j2ee-security/3.0-SNAPSHOT/car
> State changed from starting to running
> [org.apache.geronimo.kernel.config.SimpleConfigurationManager] : Loaded
> Configuration
> org.apache.geronimo.framework/j2ee-security/3.0-SNAPSHOT/car?configurationName=org.apache.geronimo.framework/j2ee-security/3.0-SNAPSHOT/car
> [org.apache.geronimo.gbean.runtime.GBeanInstanceState] : GBeanInstanceState
> for:
> org.apache.geronimo.framework/server-security-config/3.0-SNAPSHOT/car?configurationName=org.apache.geronimo.framework/server-security-config/3.0-SNAPSHOT/car
> State changed from stopped to starting
> [org.apache.geronimo.kernel.config.Configuration] : Started configuration
> org.apache.geronimo.framework/server-security-config/3.0-SNAPSHOT/car
> [org.apache.geronimo.gbean.runtime.GBeanInstanceState] : GBeanInstanceState
> for:
> org.apache.geronimo.framework/server-security-config/3.0-SNAPSHOT/car?configurationName=org.apache.geronimo.framework/server-security-config/3.0-SNAPSHOT/car
> State changed from starting to running
> [org.apache.geronimo.kernel.config.SimpleConfigurationManager] : Loaded
> Configuration
> org.apache.geronimo.framework/server-security-config/3.0-SNAPSHOT/car?configurationName=org.apache.geronimo.framework/server-security-config/3.0-SNAPSHOT/car
> [org.apache.geronimo.gbean.runtime.GBeanInstanceState] : GBeanInstanceState
> for:
> org.apache.geronimo.framework/jmx-security/3.0-SNAPSHOT/car?configurationName=org.apache.geronimo.framework/jmx-security/3.0-SNAPSHOT/car
> State changed from stopped to starting
> [org.apache.geronimo.kernel.config.Configuration] : Started configuration
> org.apache.geronimo.framework/jmx-security/3.0-SNAPSHOT/car
> [org.apache.geronimo.gbean.runtime.GBeanInstanceState] : GBeanInstanceState
> for:
> org.apache.geronimo.framework/jmx-security/3.0-SNAPSHOT/car?configurationName=org.apache.geronimo.framework/jmx-security/3.0-SNAPSHOT/car
> State changed from starting to running
> [org.apache.geronimo.kernel.config.SimpleConfigurationManager] : Loaded
> Configuration
> org.apache.geronimo.framework/jmx-security/3.0-SNAPSHOT/car?configurationName=org.apache.geronimo.framework/jmx-security/3.0-SNAPSHOT/car
> [org.apache.geronimo.system.configuration.DependencyManager] : did not find
> geronimo-plugin.xml for bundle org.apache.geronimo.modules.geronimo-farm
> [69]
> [org.apache.geronimo.kernel.config.Configuration] : Started configuration
> org.apache.geronimo.configs/plugin-farm-member/3.0-SNAPSHOT/car
> [org.apache.geronimo.kernel.config.Configuration] : Stopping configuration
> org.apache.geronimo.configs/plugin-farm-member/3.0-SNAPSHOT/car
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] FATAL ERROR
> [INFO]
> ------------------------------------------------------------------------
> org.codehaus.classworlds.NoSuchRealmException: plexus.core
>     at org.codehaus.classworlds.ClassWorld.getRealm(ClassWorld.java:128)
>     at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:434)
>     at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> ERROR: EventDispatcher: Error during dispatch. (java.lang.OutOfMemoryError:
> PermGen space)
> java.lang.OutOfMemoryError: PermGen space
>
>
> best reguards
> ________________________________
> View this message in context: java.lang.OutOfMemoryError: PermGen space
> Sent from the Users mailing list archive at Nabble.com.
>

Re: java.lang.OutOfMemoryError: PermGen space

Posted by Ted Kirby <te...@gmail.com>.
Thanks Janet.  The mavenrc_pre.bat was causing my problem.  I removed
it and am no longer having that problem.

On Tue, Oct 12, 2010 at 4:09 AM, han hongfang <ha...@gmail.com> wrote:
> Hi Ted,
>
> I once encountered this same problem that maven_opts was resetted after mvn
> clean install was run. Please check if you have c:\documents and
> settings\<username>\mavenrc_pre.bat on your system. If yes, further check if
> it set the value of MAVEN_OPTS.
>
> FYI. I can build geronimo trunk (Revision: 1021600) on my windows XP with
> maven_opts="-Xmx1024m -XX:MaxPermSize=256m"
>
> Janet
>
> On Tue, Oct 12, 2010 at 6:48 AM, Ted Kirby <te...@gmail.com> wrote:
>>
>> On Mon, Oct 11, 2010 at 7:52 AM, Kevan Miller <ke...@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
>
>
>
> --
> Best regards,
>
> Han Hong Fang
>

Re: java.lang.OutOfMemoryError: PermGen space

Posted by han hongfang <ha...@gmail.com>.
Hi Ted,

I once encountered this same problem that maven_opts was resetted after mvn
clean install was run. Please check if you have c:\documents and
settings\<username>\mavenrc_pre.bat on your system. If yes, further check if
it set the value of MAVEN_OPTS.

FYI. I can build geronimo trunk (Revision: 1021600) on my windows XP with
maven_opts="-Xmx1024m -XX:MaxPermSize=256m"

Janet

On Tue, Oct 12, 2010 at 6:48 AM, Ted Kirby <te...@gmail.com> wrote:

>  On Mon, Oct 11, 2010 at 7:52 AM, Kevan Miller <ke...@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
>



-- 
Best regards,

Han Hong Fang

Re: java.lang.OutOfMemoryError: PermGen space

Posted by dsh <da...@googlemail.com>.
Ted,

just did a simple HelloWorld.java to test -d32 and it works for me
(i.e. the main method will be executed and I am not getting any error
like you). I as well can execute java -d32 -version which won't show
the 64-Bit Server string portion and thus I assume it successfully
switched to 32bit mode.

Cheers
Daniel

On Tue, Oct 19, 2010 at 11:24 AM, dsh <da...@googlemail.com> wrote:
> Too bad I thought I got -d32 once working while a was working on a
> project which was using JNI to access 32Bit native libs...
>
> On Mon, Oct 18, 2010 at 6:50 PM, Ted Kirby <te...@gmail.com> wrote:
>> 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 <da...@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 <te...@gmail.com> wrote:
>>>> On Mon, Oct 11, 2010 at 7:52 AM, Kevan Miller <ke...@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
>>>>
>>>
>>
>

Re: java.lang.OutOfMemoryError: PermGen space

Posted by dsh <da...@googlemail.com>.
Too bad I thought I got -d32 once working while a was working on a
project which was using JNI to access 32Bit native libs...

On Mon, Oct 18, 2010 at 6:50 PM, Ted Kirby <te...@gmail.com> wrote:
> 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 <da...@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 <te...@gmail.com> wrote:
>>> On Mon, Oct 11, 2010 at 7:52 AM, Kevan Miller <ke...@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
>>>
>>
>

Re: java.lang.OutOfMemoryError: PermGen space

Posted by Ted Kirby <te...@gmail.com>.
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 <da...@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 <te...@gmail.com> wrote:
>> On Mon, Oct 11, 2010 at 7:52 AM, Kevan Miller <ke...@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
>>
>

Re: java.lang.OutOfMemoryError: PermGen space

Posted by dsh <da...@googlemail.com>.
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 <te...@gmail.com> wrote:
> On Mon, Oct 11, 2010 at 7:52 AM, Kevan Miller <ke...@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
>

Re: java.lang.OutOfMemoryError: PermGen space

Posted by Ted Kirby <te...@gmail.com>.
On Mon, Oct 11, 2010 at 7:52 AM, Kevan Miller <ke...@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

Re: java.lang.OutOfMemoryError: PermGen space

Posted by Kevan Miller <ke...@gmail.com>.
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