Hi All,

Recently I turned on several plugins only to find Java's annoying
"OutOfMemory PermGen space" error. Since this problem exists at the JVM
level I am finding it very difficult to diagnose the problem and where it
exists in my maven configuration.

Setting your MAVEN_OPTS environment parameter, so that MAVEN_OPTS="-Xmx1024m
-XX:MaxPermSize=256m" fixes most people's permgen related problems - but it
does not in my case. Personally speaking, 256m of PermGen is HUGE! I have
even run this with a MASSIVE 512m and it still fails. This leads me to
believe that the problem lies elsewhere, and that there *might* be >1 JVM
being used.

Recommendations have lead me to investigate "forking" the execution of the
compiler. This is also a convoluted and relatively undocumented config which
makes the job that much harder. I'm yet to get a working forking
configuration. Further more there's little doco on Forking other plugins
(like reporting/site plugins). So I'm not actually doing any non-default
forking with any plugins - perhaps I should be?

Conclusion:
I've no way of determining exactly what, why or which plugin is using up all
my PermGen space. It's also very difficult for me to configure forking (aka
running the plugin in a different JVM to maven) plugins. Especially when I
don't know what plugin is causing the problem to begin with.

If anyone has any advice for diagnosing this I would very much appreciate
your help.

--AH

p.s.

mvn clean install  == success!
mvn clean install site == fail!

but

mvn clean install; mvn site  == success!

Reply via email to