You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Mac-Systems <ma...@mac-systems.de> on 2007/10/18 15:09:59 UTC

Javadoc Plugin 2.3 - Generating Doc caused Out of Memory -Xmx doent help

Hello,

since yesterday we never generated Javadoc for our large Multiprojekt.
I included the javadoc plugin and run : mvn site
all is fine so far, javadoc is generated, but in a subprojekt which uses 
the "generate sources"
phase to call some ANT script . Now i get exactly there a out of memory 
Error.
Well, i do not believe the error comes from that ANT Plugin (i tested i 
already), as Javadoc is the only thing
i changed to my pom for a while, below i tried to set the memory options 
for the javadoc plugin whithout
any luck (i get again an OOM Error).

Someone can tell me what i am doing wrong there ?


                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-javadoc-plugin</artifactId>
                    <version>2.3</version>
                </plugin>



..
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-javadoc-plugin</artifactId>
                <configuration>
                    <links>
                       
 <link>http://java.sun.com/j2se/1.5.0/docs/api/</link>
                    </links>
                    <use>false</use>
                    <quiet>true</quiet>
                    <maxmemory>1024m</maxmemory>
                    <minmemory>512m</minmemory>



Following output i get:


[INFO] [antrun:run {execution: }]
[INFO] Executing tasks
     [echo] Generiere Sourcecode fuer Projekt...

init:

ejbdoclet:
PermGen space
ParameterImpl instances:   0
MethodImpl instances:      0
ConstructorImpl instances: 0
SimpleNode instances:      0
SourceClass instances:     0
XDoc instances:            0
DefaultXTag instances:     0
BinaryClass instances:     0
UnknownClass instances:    0
Total memory:    171
Free memory:    90
Try to increase heap size. Can be done by defining ANT_OPTS=-Xmx640m
See the JDK tooldocs.



Before i was using version 2.2 of javadoc Plugin, the output was more
like the standard java out of memory error.

I set also ANT_OPTS to an high value, also which now results.

Anyone can help ?

best regards,
Jens





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


Re: Javadoc Plugin 2.3 - Generating Doc caused Out of Memory -Xmx doent help

Posted by Mac-Systems <ma...@mac-systems.de>.
Thanks for your Answer,

i will try that.


- Jens
> Also, you're not running out of heap space but of permgenspace.
>
> Try (for maven / antrun plugin) -XX:MaxPermSize=256 or (for the javadoc plugin) <additionalJOption>-J -XX:MaxPermSize=256</additionalJOption>
>
> Hth,
>
> Nick Stolwijk
>
>
> -----Original Message-----
> From: Tim Kettler [mailto:tim.kettler@udo.edu]
> Sent: Thu 10/18/2007 3:24 PM
> To: Maven Users List
> Subject: Re: Javadoc Plugin 2.3  - Generating Doc caused Out of Memory -Xmx doent help
>  
> Hi,
>
> in the subject you say genereating the javadoc causes the OOME, but
> judging from the log output it seems it's in the antrun-plugin
> execution. Have you just tried invoking maven itself with more memory:
>
> mvn -Xmx... or MAVEN_OPTS=-Xmx...
>
> -Tim
>
> Mac-Systems schrieb:
>   
>> Hello,
>>
>> since yesterday we never generated Javadoc for our large Multiprojekt.
>> I included the javadoc plugin and run : mvn site
>> all is fine so far, javadoc is generated, but in a subprojekt which uses
>> the "generate sources"
>> phase to call some ANT script . Now i get exactly there a out of memory
>> Error.
>> Well, i do not believe the error comes from that ANT Plugin (i tested i
>> already), as Javadoc is the only thing
>> i changed to my pom for a while, below i tried to set the memory options
>> for the javadoc plugin whithout
>> any luck (i get again an OOM Error).
>>
>> Someone can tell me what i am doing wrong there ?
>>
>>
>>                <plugin>
>>                    <groupId>org.apache.maven.plugins</groupId>
>>                    <artifactId>maven-javadoc-plugin</artifactId>
>>                    <version>2.3</version>
>>                </plugin>
>>
>>
>>
>> ..
>>            <plugin>
>>                <groupId>org.apache.maven.plugins</groupId>
>>                <artifactId>maven-javadoc-plugin</artifactId>
>>                <configuration>
>>                    <links>
>>                       <link>http://java.sun.com/j2se/1.5.0/docs/api/</link>
>>                    </links>
>>                    <use>false</use>
>>                    <quiet>true</quiet>
>>                    <maxmemory>1024m</maxmemory>
>>                    <minmemory>512m</minmemory>
>>
>>
>>
>> Following output i get:
>>
>>
>> [INFO] [antrun:run {execution: }]
>> [INFO] Executing tasks
>>     [echo] Generiere Sourcecode fuer Projekt...
>>
>> init:
>>
>> ejbdoclet:
>> PermGen space
>> ParameterImpl instances:   0
>> MethodImpl instances:      0
>> ConstructorImpl instances: 0
>> SimpleNode instances:      0
>> SourceClass instances:     0
>> XDoc instances:            0
>> DefaultXTag instances:     0
>> BinaryClass instances:     0
>> UnknownClass instances:    0
>> Total memory:    171
>> Free memory:    90
>> Try to increase heap size. Can be done by defining ANT_OPTS=-Xmx640m
>> See the JDK tooldocs.
>>
>>
>>
>> Before i was using version 2.2 of javadoc Plugin, the output was more
>> like the standard java out of memory error.
>>
>> I set also ANT_OPTS to an high value, also which now results.
>>
>> Anyone can help ?
>>
>> best regards,
>> Jens
>>
>>
>>
>>
>>
>> ---------------------------------------------------------------------
>> 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: Javadoc Plugin 2.3 - Generating Doc caused Out of Memory -Xmx doent help

Posted by ni...@planet.nl.
Also, you're not running out of heap space but of permgenspace.

Try (for maven / antrun plugin) -XX:MaxPermSize=256 or (for the javadoc plugin) <additionalJOption>-J -XX:MaxPermSize=256</additionalJOption>

Hth,

Nick Stolwijk


-----Original Message-----
From: Tim Kettler [mailto:tim.kettler@udo.edu]
Sent: Thu 10/18/2007 3:24 PM
To: Maven Users List
Subject: Re: Javadoc Plugin 2.3  - Generating Doc caused Out of Memory -Xmx doent help
 
Hi,

in the subject you say genereating the javadoc causes the OOME, but
judging from the log output it seems it's in the antrun-plugin
execution. Have you just tried invoking maven itself with more memory:

mvn -Xmx... or MAVEN_OPTS=-Xmx...

-Tim

Mac-Systems schrieb:
> Hello,
> 
> since yesterday we never generated Javadoc for our large Multiprojekt.
> I included the javadoc plugin and run : mvn site
> all is fine so far, javadoc is generated, but in a subprojekt which uses
> the "generate sources"
> phase to call some ANT script . Now i get exactly there a out of memory
> Error.
> Well, i do not believe the error comes from that ANT Plugin (i tested i
> already), as Javadoc is the only thing
> i changed to my pom for a while, below i tried to set the memory options
> for the javadoc plugin whithout
> any luck (i get again an OOM Error).
> 
> Someone can tell me what i am doing wrong there ?
> 
> 
>                <plugin>
>                    <groupId>org.apache.maven.plugins</groupId>
>                    <artifactId>maven-javadoc-plugin</artifactId>
>                    <version>2.3</version>
>                </plugin>
> 
> 
> 
> ..
>            <plugin>
>                <groupId>org.apache.maven.plugins</groupId>
>                <artifactId>maven-javadoc-plugin</artifactId>
>                <configuration>
>                    <links>
>                       <link>http://java.sun.com/j2se/1.5.0/docs/api/</link>
>                    </links>
>                    <use>false</use>
>                    <quiet>true</quiet>
>                    <maxmemory>1024m</maxmemory>
>                    <minmemory>512m</minmemory>
> 
> 
> 
> Following output i get:
> 
> 
> [INFO] [antrun:run {execution: }]
> [INFO] Executing tasks
>     [echo] Generiere Sourcecode fuer Projekt...
> 
> init:
> 
> ejbdoclet:
> PermGen space
> ParameterImpl instances:   0
> MethodImpl instances:      0
> ConstructorImpl instances: 0
> SimpleNode instances:      0
> SourceClass instances:     0
> XDoc instances:            0
> DefaultXTag instances:     0
> BinaryClass instances:     0
> UnknownClass instances:    0
> Total memory:    171
> Free memory:    90
> Try to increase heap size. Can be done by defining ANT_OPTS=-Xmx640m
> See the JDK tooldocs.
> 
> 
> 
> Before i was using version 2.2 of javadoc Plugin, the output was more
> like the standard java out of memory error.
> 
> I set also ANT_OPTS to an high value, also which now results.
> 
> Anyone can help ?
> 
> best regards,
> Jens
> 
> 
> 
> 
> 
> ---------------------------------------------------------------------
> 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: Javadoc Plugin 2.3 - Generating Doc caused Out of Memory -Xmx doent help

Posted by Mac-Systems <ma...@mac-systems.de>.
Yes,

i've set maven opts up to 1024m.

- jens
> Hi,
>
> in the subject you say genereating the javadoc causes the OOME, but
> judging from the log output it seems it's in the antrun-plugin
> execution. Have you just tried invoking maven itself with more memory:
>
> mvn -Xmx... or MAVEN_OPTS=-Xmx...
>
> -Tim
>
> Mac-Systems schrieb:
>   
>> Hello,
>>
>> since yesterday we never generated Javadoc for our large Multiprojekt.
>> I included the javadoc plugin and run : mvn site
>> all is fine so far, javadoc is generated, but in a subprojekt which uses
>> the "generate sources"
>> phase to call some ANT script . Now i get exactly there a out of memory
>> Error.
>> Well, i do not believe the error comes from that ANT Plugin (i tested i
>> already), as Javadoc is the only thing
>> i changed to my pom for a while, below i tried to set the memory options
>> for the javadoc plugin whithout
>> any luck (i get again an OOM Error).
>>
>> Someone can tell me what i am doing wrong there ?
>>
>>
>>                <plugin>
>>                    <groupId>org.apache.maven.plugins</groupId>
>>                    <artifactId>maven-javadoc-plugin</artifactId>
>>                    <version>2.3</version>
>>                </plugin>
>>
>>
>>
>> ..
>>            <plugin>
>>                <groupId>org.apache.maven.plugins</groupId>
>>                <artifactId>maven-javadoc-plugin</artifactId>
>>                <configuration>
>>                    <links>
>>                       <link>http://java.sun.com/j2se/1.5.0/docs/api/</link>
>>                    </links>
>>                    <use>false</use>
>>                    <quiet>true</quiet>
>>                    <maxmemory>1024m</maxmemory>
>>                    <minmemory>512m</minmemory>
>>
>>
>>
>> Following output i get:
>>
>>
>> [INFO] [antrun:run {execution: }]
>> [INFO] Executing tasks
>>     [echo] Generiere Sourcecode fuer Projekt...
>>
>> init:
>>
>> ejbdoclet:
>> PermGen space
>> ParameterImpl instances:   0
>> MethodImpl instances:      0
>> ConstructorImpl instances: 0
>> SimpleNode instances:      0
>> SourceClass instances:     0
>> XDoc instances:            0
>> DefaultXTag instances:     0
>> BinaryClass instances:     0
>> UnknownClass instances:    0
>> Total memory:    171
>> Free memory:    90
>> Try to increase heap size. Can be done by defining ANT_OPTS=-Xmx640m
>> See the JDK tooldocs.
>>
>>
>>
>> Before i was using version 2.2 of javadoc Plugin, the output was more
>> like the standard java out of memory error.
>>
>> I set also ANT_OPTS to an high value, also which now results.
>>
>> Anyone can help ?
>>
>> best regards,
>> Jens
>>
>>
>>
>>
>>
>> ---------------------------------------------------------------------
>> 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: Javadoc Plugin 2.3 - Generating Doc caused Out of Memory -Xmx doent help

Posted by Tim Kettler <ti...@udo.edu>.
Hi,

in the subject you say genereating the javadoc causes the OOME, but
judging from the log output it seems it's in the antrun-plugin
execution. Have you just tried invoking maven itself with more memory:

mvn -Xmx... or MAVEN_OPTS=-Xmx...

-Tim

Mac-Systems schrieb:
> Hello,
> 
> since yesterday we never generated Javadoc for our large Multiprojekt.
> I included the javadoc plugin and run : mvn site
> all is fine so far, javadoc is generated, but in a subprojekt which uses
> the "generate sources"
> phase to call some ANT script . Now i get exactly there a out of memory
> Error.
> Well, i do not believe the error comes from that ANT Plugin (i tested i
> already), as Javadoc is the only thing
> i changed to my pom for a while, below i tried to set the memory options
> for the javadoc plugin whithout
> any luck (i get again an OOM Error).
> 
> Someone can tell me what i am doing wrong there ?
> 
> 
>                <plugin>
>                    <groupId>org.apache.maven.plugins</groupId>
>                    <artifactId>maven-javadoc-plugin</artifactId>
>                    <version>2.3</version>
>                </plugin>
> 
> 
> 
> ..
>            <plugin>
>                <groupId>org.apache.maven.plugins</groupId>
>                <artifactId>maven-javadoc-plugin</artifactId>
>                <configuration>
>                    <links>
>                       <link>http://java.sun.com/j2se/1.5.0/docs/api/</link>
>                    </links>
>                    <use>false</use>
>                    <quiet>true</quiet>
>                    <maxmemory>1024m</maxmemory>
>                    <minmemory>512m</minmemory>
> 
> 
> 
> Following output i get:
> 
> 
> [INFO] [antrun:run {execution: }]
> [INFO] Executing tasks
>     [echo] Generiere Sourcecode fuer Projekt...
> 
> init:
> 
> ejbdoclet:
> PermGen space
> ParameterImpl instances:   0
> MethodImpl instances:      0
> ConstructorImpl instances: 0
> SimpleNode instances:      0
> SourceClass instances:     0
> XDoc instances:            0
> DefaultXTag instances:     0
> BinaryClass instances:     0
> UnknownClass instances:    0
> Total memory:    171
> Free memory:    90
> Try to increase heap size. Can be done by defining ANT_OPTS=-Xmx640m
> See the JDK tooldocs.
> 
> 
> 
> Before i was using version 2.2 of javadoc Plugin, the output was more
> like the standard java out of memory error.
> 
> I set also ANT_OPTS to an high value, also which now results.
> 
> Anyone can help ?
> 
> best regards,
> Jens
> 
> 
> 
> 
> 
> ---------------------------------------------------------------------
> 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