Quantcast

java.lang.OutOfMemoryError: PermGen space

classic Classic list List threaded Threaded
11 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

java.lang.OutOfMemoryError: PermGen space

mohamed.chebbi
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
dsh
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: java.lang.OutOfMemoryError: PermGen space

dsh
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 <[hidden email]> 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.
>
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: java.lang.OutOfMemoryError: PermGen space

delos
What's your maven version?

On Mon, Oct 11, 2010 at 1:56 AM, dsh <[hidden email]> 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 <[hidden email]> 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
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: java.lang.OutOfMemoryError: PermGen space

kevan
Administrator
In reply to this post by mohamed.chebbi

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
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: java.lang.OutOfMemoryError: PermGen space

Ted Kirby-2
On Mon, Oct 11, 2010 at 7:52 AM, Kevan Miller <[hidden email]> 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
dsh
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: java.lang.OutOfMemoryError: PermGen space

dsh
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 <[hidden email]> wrote:

> On Mon, Oct 11, 2010 at 7:52 AM, Kevan Miller <[hidden email]> 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
>
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: java.lang.OutOfMemoryError: PermGen space

han hongfang
In reply to this post by Ted Kirby-2
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 <[hidden email]> wrote:
On Mon, Oct 11, 2010 at 7:52 AM, Kevan Miller <[hidden email]> 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
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: java.lang.OutOfMemoryError: PermGen space

Ted Kirby-2
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 <[hidden email]> 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 <[hidden email]> wrote:
>>
>> On Mon, Oct 11, 2010 at 7:52 AM, Kevan Miller <[hidden email]>
>> 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
>
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: java.lang.OutOfMemoryError: PermGen space

Ted Kirby-2
In reply to this post by dsh
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 <[hidden email]> 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 <[hidden email]> wrote:
>> On Mon, Oct 11, 2010 at 7:52 AM, Kevan Miller <[hidden email]> 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
>>
>
dsh
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: java.lang.OutOfMemoryError: PermGen space

dsh
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 <[hidden email]> 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 <[hidden email]> 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 <[hidden email]> wrote:
>>> On Mon, Oct 11, 2010 at 7:52 AM, Kevan Miller <[hidden email]> 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
>>>
>>
>
dsh
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: java.lang.OutOfMemoryError: PermGen space

dsh
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 <[hidden email]> 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 <[hidden email]> 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 <[hidden email]> 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 <[hidden email]> wrote:
>>>> On Mon, Oct 11, 2010 at 7:52 AM, Kevan Miller <[hidden email]> 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
>>>>
>>>
>>
>
Loading...