You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Gernot Koller <gr...@gmx.at> on 2003/01/21 17:43:49 UTC

Re: build javadocs bug and out-of-memory

Hi!

Having 512Mb RAM in my box, build still fails with OutofMemoryException while doing the java-doc target.
Any hints what I can do ?

thx,

Gernot.


24-Dec-02 08:40:16, Nicola Ken Barozzi <ni...@apache.org> wrote:

>
>
>David Crossley wrote:
>> The 'build javadocs' was failing for me with out-of memory
>> and this is a reasonably hefty desktop (256 Mb RAM)
>> JVM: Linux Blackdown-1.3.1_02b-FCS
>> 
>> I found what the problem was. The 2.1-dev build has changed
>> recently to gather the java source from various locations,
>> using Ant <fileset> rather than <sourcepath>. This now feeds
>> javadoc with *.java files rather than just telling javadoc
>> the path and letting it gather the files. It seems to just
>> consume more and more memory, and then fall over.
>
>It was done to gather the javadocs of the blocks.
>And as a fix to the memor problem, it was said to use a temporary file 
>for persistence.
>
>> So i just made an experimental commit to the build.xml
>> using <sourcepath> instead - this seems to fix it.
>> Would others please try it out.
>
>Does it do blocks too?
>
>Probably the best thing would be to do the core javadocs first, and then 
>javadocs for each block that reference the main ones, or something like 
>that.
>
>-- 
>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: build javadocs bug and out-of-memory

Posted by SAXESS - Hussayn Dabbous <da...@saxess.com>.
Did you try this trick? :

Set JAVA_OPTS environment var as follows:

JAVA_OPTS=-Xms100m -Xmx500m

then restart your java program

or drop these args directly on the java commandline:

java -Xms100m -Xmx500m ...

regards, hussayn


Gernot Koller wrote:
> Hi!
> 
> Having 512Mb RAM in my box, build still fails with OutofMemoryException while doing the java-doc target.
> Any hints what I can do ?
> 
> thx,
> 
> Gernot.
> 
> 
> 24-Dec-02 08:40:16, Nicola Ken Barozzi <ni...@apache.org> wrote:
> 
> 
>>
>>David Crossley wrote:
>>
>>>The 'build javadocs' was failing for me with out-of memory
>>>and this is a reasonably hefty desktop (256 Mb RAM)
>>>JVM: Linux Blackdown-1.3.1_02b-FCS
>>>
>>>I found what the problem was. The 2.1-dev build has changed
>>>recently to gather the java source from various locations,
>>>using Ant <fileset> rather than <sourcepath>. This now feeds
>>>javadoc with *.java files rather than just telling javadoc
>>>the path and letting it gather the files. It seems to just
>>>consume more and more memory, and then fall over.
>>
>>It was done to gather the javadocs of the blocks.
>>And as a fix to the memor problem, it was said to use a temporary file 
>>for persistence.
>>
>>
>>>So i just made an experimental commit to the build.xml
>>>using <sourcepath> instead - this seems to fix it.
>>>Would others please try it out.
>>
>>Does it do blocks too?
>>
>>Probably the best thing would be to do the core javadocs first, and then 
>>javadocs for each block that reference the main ones, or something like 
>>that.
>>
>>-- 
>>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
> 

-- 
Dr. Hussayn Dabbous
SAXESS Software Design GmbH
Neuenhöfer Allee 125
50935 Köln
Telefon: +49-221-56011-0
Fax:     +49-221-56011-20
E-Mail:  dabbous@saxess.com


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