You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Antonio Gallardo <ag...@agsoftware.dnsalias.com> on 2003/01/10 03:31:57 UTC

RE: [Summary] CVS build and java.lang.OutOfMemoryError

PROBLEM:

When building the CVS version of Cocoon 2.1 you get the following message:

java.lang.OutOfMemoryError

BUILD FAILED
file:/xml-cocoon2/build.xml:1209: Compile failed; see the compiler
error output for details.

WORKAROUND:
Increase the amount of heap space allocated to the JVM. Add the -Xmx512mb
parameter to the java invocation at tools/bin/ant file.

Antonio Gallardo.



---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


RE: [Summary] CVS build and java.lang.OutOfMemoryError

Posted by Carsten Ziegeler <cz...@s-und-n.de>.
Yes, and it also happens with JDK-1.3.1 on W2K.

Carsten

> -----Original Message-----
> From: David Crossley [mailto:crossley@indexgeo.com.au]
> Sent: Saturday, January 11, 2003 2:37 AM
> To: cocoon-dev@xml.apache.org
> Subject: Re: [Summary] CVS build and java.lang.OutOfMemoryError
> 
> 
> Nicola Ken Barozzi wrote:
> <snip/>
> > Now I think i fixed it, ...<snip/>
> 
> Drat, it still happens for me with today's cvs.
> Linux with Java-1.3.1
> --David
> 
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
> For additional commands, email: cocoon-dev-help@xml.apache.org
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Re: [Summary] CVS build and java.lang.OutOfMemoryError

Posted by David Crossley <cr...@indexgeo.com.au>.
Nicola Ken Barozzi wrote:
<snip/>
> Now I think i fixed it, ...<snip/>

Drat, it still happens for me with today's cvs.
Linux with Java-1.3.1
--David





---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


RE: [Summary] CVS build and java.lang.OutOfMemoryError

Posted by Carsten Ziegeler <cz...@s-und-n.de>.
Good work, Nicola Ken!

Carsten

> -----Original Message-----
> From: Nicola Ken Barozzi [mailto:nicolaken@apache.org]
> Sent: Friday, January 10, 2003 12:03 PM
> To: cocoon-dev@xml.apache.org
> Subject: Re: [Summary] CVS build and java.lang.OutOfMemoryError
> 
> 
> 
> Antonio Gallardo wrote:
> > PROBLEM:
> > 
> > When building the CVS version of Cocoon 2.1 you get the 
> following message:
> > 
> > java.lang.OutOfMemoryError
> > 
> > BUILD FAILED
> > file:/xml-cocoon2/build.xml:1209: Compile failed; see the compiler
> > error output for details.
> > 
> > WORKAROUND:
> > Increase the amount of heap space allocated to the JVM. Add the 
> -Xmx512mb
> > parameter to the java invocation at tools/bin/ant file.
> 
> Now I think i fixed it, by setting fork=true to the javac task for the 
> blocks. This lowers the memory need for the build.
> 
> Before the memory used to build each block was not released by Ant, and 
> kept building up till the build failed.
> Now after each block build, memory is released.
> 
> Sorry for the inconvenience.
> 
> -- 
> Nicola Ken Barozzi                   nicolaken@apache.org
>              - verba volant, scripta manent -
>     (discussions get forgotten, just code remains)
> ---------------------------------------------------------------------
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
> For additional commands, email: cocoon-dev-help@xml.apache.org
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Re: [Summary] CVS build and java.lang.OutOfMemoryError

Posted by Nicola Ken Barozzi <ni...@apache.org>.
Antonio Gallardo wrote:
> PROBLEM:
> 
> When building the CVS version of Cocoon 2.1 you get the following message:
> 
> java.lang.OutOfMemoryError
> 
> BUILD FAILED
> file:/xml-cocoon2/build.xml:1209: Compile failed; see the compiler
> error output for details.
> 
> WORKAROUND:
> Increase the amount of heap space allocated to the JVM. Add the -Xmx512mb
> parameter to the java invocation at tools/bin/ant file.

Now I think i fixed it, by setting fork=true to the javac task for the 
blocks. This lowers the memory need for the build.

Before the memory used to build each block was not released by Ant, and 
kept building up till the build failed.
Now after each block build, memory is released.

Sorry for the inconvenience.

-- 
Nicola Ken Barozzi                   nicolaken@apache.org
             - verba volant, scripta manent -
    (discussions get forgotten, just code remains)
---------------------------------------------------------------------


---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org