You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Jeffrey Mutonho <ej...@gmail.com> on 2005/08/08 16:27:18 UTC

java.lang.OutOfMemoryError

Hi 

I'm getting a java.lang.OutOfMemoryError message during build(see
exact error below).I set

MAVEN_OPTS=-Xmx512m;export MAVEN_OPTS  in my  .bash_profile .The machine is 
a Red Hat Linux Advanced Server release 2.1AS (Pensacola).

The actual error message says :

 [echo] Generating
/home/jmu016/maven-1.0/projects_main/projects/Safmarine/Cbpt/Exact_Web/target/docs/checkstyle-report.html
from /home/jmu016/maven-1.0/projects_main/projects/Safmarine/Cbpt/Exact_Web/target/generated-xdocs/checkstyle-report.xml

BUILD FAILED
File...... /home/jmu016/maven-1.0/projects_main/projects/Safmarine/Cbpt/maven.xml
Element... m:reactor
Line...... 53
Column.... 40
Unable to obtain goal [exact-build-all] --
/home/jmu016/.maven/cache/maven-xdoc-plugin-1.8/plugin.jelly:360:43:
<x:parse> java.lang.OutOfMemoryError
Total time: 65 minutes 24 seconds
Finished at: Mon Aug 08 14:24:19 SAST 2005

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


RE: java.lang.OutOfMemoryError

Posted by Jeff Jensen <je...@upstairstechnology.com>.
Don't turn it off, just reduce the rules.  Create a second rule set file,
narrowing to just the critical stuff.  After those are cleaned up, then add
more rules until you are back at the set you want to run.

Mine is: MAVEN_OPTS=-Xmx1024m.  Try increasing your memory size.


-----Original Message-----
From: Brett Porter [mailto:brett.porter@gmail.com] 
Sent: Monday, August 08, 2005 4:48 PM
To: Maven Users List
Subject: Re: java.lang.OutOfMemoryError

Trying Maven 1.1 will help, but this is quite common to see.
Checkstyle can be huge.

If your checkstyle report is huge, turn it off. It's not helping you.

- Brett

On 8/9/05, Jeffrey Mutonho <ej...@gmail.com> wrote:
> Hi
> 
> I'm getting a java.lang.OutOfMemoryError message during build(see 
> exact error below).I set
> 
> MAVEN_OPTS=-Xmx512m;export MAVEN_OPTS  in my  .bash_profile .The 
> machine is a Red Hat Linux Advanced Server release 2.1AS (Pensacola).
> 
> The actual error message says :
> 
>  [echo] Generating
> /home/jmu016/maven-1.0/projects_main/projects/Safmarine/Cbpt/Exact_Web
> /target/docs/checkstyle-report.html
> from 
> /home/jmu016/maven-1.0/projects_main/projects/Safmarine/Cbpt/Exact_Web
> /target/generated-xdocs/checkstyle-report.xml
> 
> BUILD FAILED
> File...... 
> /home/jmu016/maven-1.0/projects_main/projects/Safmarine/Cbpt/maven.xml
> Element... m:reactor
> Line...... 53
> Column.... 40
> Unable to obtain goal [exact-build-all] --
> /home/jmu016/.maven/cache/maven-xdoc-plugin-1.8/plugin.jelly:360:43:
> <x:parse> java.lang.OutOfMemoryError
> Total time: 65 minutes 24 seconds
> Finished at: Mon Aug 08 14:24:19 SAST 2005
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: java.lang.OutOfMemoryError

Posted by Brett Porter <br...@gmail.com>.
Trying Maven 1.1 will help, but this is quite common to see.
Checkstyle can be huge.

If your checkstyle report is huge, turn it off. It's not helping you.

- Brett

On 8/9/05, Jeffrey Mutonho <ej...@gmail.com> wrote:
> Hi
> 
> I'm getting a java.lang.OutOfMemoryError message during build(see
> exact error below).I set
> 
> MAVEN_OPTS=-Xmx512m;export MAVEN_OPTS  in my  .bash_profile .The machine is
> a Red Hat Linux Advanced Server release 2.1AS (Pensacola).
> 
> The actual error message says :
> 
>  [echo] Generating
> /home/jmu016/maven-1.0/projects_main/projects/Safmarine/Cbpt/Exact_Web/target/docs/checkstyle-report.html
> from /home/jmu016/maven-1.0/projects_main/projects/Safmarine/Cbpt/Exact_Web/target/generated-xdocs/checkstyle-report.xml
> 
> BUILD FAILED
> File...... /home/jmu016/maven-1.0/projects_main/projects/Safmarine/Cbpt/maven.xml
> Element... m:reactor
> Line...... 53
> Column.... 40
> Unable to obtain goal [exact-build-all] --
> /home/jmu016/.maven/cache/maven-xdoc-plugin-1.8/plugin.jelly:360:43:
> <x:parse> java.lang.OutOfMemoryError
> Total time: 65 minutes 24 seconds
> Finished at: Mon Aug 08 14:24:19 SAST 2005
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: java.lang.OutOfMemoryError

Posted by dan tran <da...@gmail.com>.
xdoc is known to eat up memory big time for  a large project.

how many sub projects do you have?

Does increase -Xms help?

-D

On 8/8/05, Jeffrey Mutonho <ej...@gmail.com> wrote:
> Hi
> 
> I'm getting a java.lang.OutOfMemoryError message during build(see
> exact error below).I set
> 
> MAVEN_OPTS=-Xmx512m;export MAVEN_OPTS  in my  .bash_profile .The machine is
> a Red Hat Linux Advanced Server release 2.1AS (Pensacola).
> 
> The actual error message says :
> 
>  [echo] Generating
> /home/jmu016/maven-1.0/projects_main/projects/Safmarine/Cbpt/Exact_Web/target/docs/checkstyle-report.html
> from /home/jmu016/maven-1.0/projects_main/projects/Safmarine/Cbpt/Exact_Web/target/generated-xdocs/checkstyle-report.xml
> 
> BUILD FAILED
> File...... /home/jmu016/maven-1.0/projects_main/projects/Safmarine/Cbpt/maven.xml
> Element... m:reactor
> Line...... 53
> Column.... 40
> Unable to obtain goal [exact-build-all] --
> /home/jmu016/.maven/cache/maven-xdoc-plugin-1.8/plugin.jelly:360:43:
> <x:parse> java.lang.OutOfMemoryError
> Total time: 65 minutes 24 seconds
> Finished at: Mon Aug 08 14:24:19 SAST 2005
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org