Have you tried increasing the JVM memory past

MAVEN_OPTS="-Xmx1536m -Xms512m -XX:MaxPermSize=512m"
MAVEN_OPTS="-Xmx1280m -Xms256m -XX:MaxPermSize=768m"

You could try something extreme (-Xmx8g ) and see if that changes anything.

-Xms512m is not very useful in this case and you can omit it or make it the 
same as -XMXnnn.
Make sure that you allow enough(???) space after you allocate MaxPermSize.

MAVEN_OPTS="-Xmx8g -XX:MaxPermSize=768m"


Did you notice that it took longer to run out of memory with the higher settings? If not, then I may be barking up the wrong tree and you might have to change JAVA_OPTS to affect the memory allocation. If it did, then you are heading in the right direction but have not gone far enough yet.

Ron


On 28/03/2014 7:24 AM, Martin Hoeller wrote:
Hi Baptiste!

I tried it but it didn't change anything. Still OutOfMemoryError :(

-martin

On 28 Mär 2014, Baptiste Mathus wrote:

Sorry, I haven't used javadoc for years now, but as javadoc is an external
tool, I guess you should specify additionalJOption?
http://maven.apache.org/plugins/maven-javadoc-plugin/javadoc-mojo.html#additionalJOption

Cheers


2014-03-28 10:36 GMT+01:00 Martin Hoeller <[email protected]>:

Hi!

I have a quite large multimodule project with >150 modules. When
executing "mvn site" the maven-javadoc-plugin is executed with default
configuration. After some time of execution it fails in "aggregate" goal
and I get a

   Exception in thread "main" java.lang.OutOfMemoryError: GC overhead limit
exceeded"

I know, I can adjust MAVEN_OPTS to give it more memory and I tried it with
MAVEN_OPTS="-Xmx1536m -Xms512m -XX:MaxPermSize=512m" and with
MAVEN_OPTS="-Xmx1280m -Xms256m -XX:MaxPermSize=768m". Both just leading
to another OutOfMemoryError (but no GC overhead limit exceeded).

I'm currently using maven 3.1.1 and tested with m-javadoc-p 2.8 and 2.9.1
(no difference).

So my question is: does any body have some idea how to tweak parameters
to solve this issue?

My current workaround is to disable aggregation in <reporting> section as
described here [0]. But this is really just a workaround, no solution :(

thx for your help,
- martin

[0]
https://maven.apache.org/plugins/maven-javadoc-plugin/examples/selective-javadocs-report.html



--
Baptiste <Batmat> MATHUS - http://batmat.net
Sauvez un arbre,
Mangez un castor !



--
Ron Wheeler
President
Artifact Software Inc
email: [email protected]
skype: ronaldmwheeler
phone: 866-970-2435, ext 102


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to