dev@glassfish.java.net

Re: v3 build: OutOfMemoryError

From: Jane Young <Jane.Young_at_Sun.COM>
Date: Tue, 23 Jun 2009 17:09:54 -0700

Maybe you've never seen the "java OutOfMemory Error". Many people have
seen this issue when executing "mvn".
It's actually documented here:
http://wiki.glassfish.java.net/Wiki.jsp?page=V3FullBuildInstructions
(search for MAVEN_OPTS).

The PermGen memory error just recently showed up. As we add more
modules to v3 build, maven reactor may require more heap space.

So to answer your question, it's expected that you add this environment
since you are facing OutOfMemoryError in your build.

HTH,
Jane


Marina Vatkina wrote:
> Hi Jane,
>
> I didn't have any MAVEN_OPTS env set before. Is it expected, that we do?
>
> thanks,
> -marina
>
> Jane Young wrote:
>> Hi Marina,
>>
>> They are set in the OS environment.
>> e.g.
>> export MAVEN_OPTS="-Xmx512m -XX:MaxPermSize=512m"
>>
>> HTH,
>> Jane
>>
>>
>>
>> Marina Vatkina wrote:
>>
>>> Hi Jane,
>>>
>>> Where are they set?
>>>
>>> thanks,
>>> -marina
>>>
>>> Jane Young wrote:
>>>
>>>> Hi Marina,
>>>>
>>>> Please increase PermGen space:
>>>> "-XX:MaxPermSize=512m" in MAVEN_OPTS.
>>>>
>>>> Jane
>>>>
>>>>
>>>> Marina Vatkina wrote:
>>>>
>>>>> I have a good x86 desktop :(
>>>>>
>>>>> [INFO] Building Embedded GlassFish API
>>>>> [INFO] task-segment: [install]
>>>>> [INFO]
>>>>> ------------------------------------------------------------------------
>>>>>
>>>>> [INFO] [enforcer:enforce {execution: enforce-versions}]
>>>>> [INFO] [osgiversion:compute-osgi-version {execution:
>>>>> compute-osgi-version}]
>>>>> [INFO] [resources:resources]
>>>>> [INFO] Using default encoding to copy filtered resources.
>>>>> [INFO] [compiler:compile]
>>>>> [INFO] Compiling 32 source files to
>>>>> /export/v3/v3/embedded/api/target/classes
>>>>> [INFO]
>>>>> ------------------------------------------------------------------------
>>>>>
>>>>> [ERROR] BUILD ERROR
>>>>> [INFO]
>>>>> ------------------------------------------------------------------------
>>>>>
>>>>> ---------------------------------------------------
>>>>> constituent[0]:
>>>>> file:/export/apache-maven-2.0.9/lib/maven-2.0.9-uber.jar
>>>>> constituent[1]:
>>>>> file:/home/mvatkina/.m2/repository/org/codehaus/plexus/plexus-utils/1.1/plexus-utils-1.1.jar
>>>>>
>>>>> constituent[2]:
>>>>> file:/home/mvatkina/.m2/repository/org/glassfish/build/maven-glassfishbuild-extension/3.0-SNAPSHOT/maven-glassfishbuild-extension-3.0-SNAPSHOT.jar
>>>>>
>>>>> ---------------------------------------------------
>>>>> Exception in thread "main" java.lang.OutOfMemoryError: PermGen space
>>>>>
>>>>>
>>>>> ---------------------------------------------------------------------
>>>>> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
>>>>> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>>>>>
>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
>>>> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>>>>
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
>>> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
>> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>