[Issue 2141] New - outofmemory running maven site plugin

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

[Issue 2141] New - outofmemory running maven site plugin

tonynys
https://hudson.dev.java.net/issues/show_bug.cgi?id=2141
                 Issue #|2141
                 Summary|outofmemory running maven site plugin
               Component|hudson
                 Version|current
                Platform|All
              OS/Version|All
                     URL|
                  Status|NEW
       Status whiteboard|
                Keywords|
              Resolution|
              Issue type|DEFECT
                Priority|P1
            Subcomponent|maven2
             Assigned to|issues@hudson
             Reported by|tonynys






------- Additional comments from [hidden email] Tue Jul 29 12:47:43 +0000 2008 -------
maven site plugin runs out of memory with jdk1.5012
I am running in tomcat 5 on windows,
i've set CATALINA_OPTS and MAVEN_OPTS with 768M heap size
but the process gets nomore than 130M (default on windows jdk 1.5) then outofmemory.
If i understand it correctly, hudson forks a new jvm ? Is there a way to set the
jvm arguments for that jvm ?


java.lang.OutOfMemoryError: Java heap space

        at java.lang.AbstractStringBuilder.expandCapacity(AbstractStringBuilder.java:99)

        at java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:393)

        at java.lang.StringBuffer.append(StringBuffer.java:225)

        at java.io.StringWriter.write(StringWriter.java:90)

        at java.io.PrintWriter.write(PrintWriter.java:384)

        at java.io.PrintWriter.write(PrintWriter.java:401)

        at org.apache.maven.doxia.module.xhtml.XhtmlSink.write(XhtmlSink.java:1227)

        at
org.apache.maven.doxia.sink.AbstractXmlSink.writeStartTag(AbstractXmlSink.java:124)

        at
org.apache.maven.doxia.sink.AbstractXmlSink.writeStartTag(AbstractXmlSink.java:67)

        at org.apache.maven.doxia.module.xhtml.XhtmlSink.link(XhtmlSink.java:1022)

        at org.apache.maven.doxia.module.xhtml.XhtmlSink.link(XhtmlSink.java:989)

        at
org.apache.maven.plugin.checkstyle.CheckstyleReportGenerator.doFileEvents(CheckstyleReportGenerator.java:652)

        at
org.apache.maven.plugin.checkstyle.CheckstyleReportGenerator.doDetails(CheckstyleReportGenerator.java:601)

        at
org.apache.maven.plugin.checkstyle.CheckstyleReportGenerator.generateReport(CheckstyleReportGenerator.java:125)

        at
org.apache.maven.plugin.checkstyle.CheckstyleReport.generateMainReport(CheckstyleReport.java:620)

        at
org.apache.maven.plugin.checkstyle.CheckstyleReport.executeReport(CheckstyleReport.java:493)

        at
org.apache.maven.reporting.AbstractMavenReport.generate(AbstractMavenReport.java:98)

        at sun.reflect.GeneratedMethodAccessor53.invoke(Unknown Source)

        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

        at java.lang.reflect.Method.invoke(Method.java:585)

        at hudson.maven.agent.ComponentInterceptor.invoke(ComponentInterceptor.java:24)

        at
hudson.maven.agent.PluginManagerInterceptor$3.invoke(PluginManagerInterceptor.java:205)

        at $Proxy3.generate(Unknown Source)

        at
org.apache.maven.plugins.site.ReportDocumentRenderer.renderDocument(ReportDocumentRenderer.java:139)

        at
org.apache.maven.doxia.siterenderer.DefaultSiteRenderer.renderModule(DefaultSiteRenderer.java:269)

        at
org.apache.maven.doxia.siterenderer.DefaultSiteRenderer.render(DefaultSiteRenderer.java:101)

        at org.apache.maven.plugins.site.SiteMojo.renderLocale(SiteMojo.java:129)

        at org.apache.maven.plugins.site.SiteMojo.execute(SiteMojo.java:96)

        at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:451)

        at
hudson.maven.agent.PluginManagerInterceptor.executeMojo(PluginManagerInterceptor.java:159)

        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:558)

        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:512)

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

Reply | Threaded
Open this post in threaded view
|

[Issue 2141] outofmemory running maven site plugin

tonynys
https://hudson.dev.java.net/issues/show_bug.cgi?id=2141






------- Additional comments from [hidden email] Tue Jul 29 12:55:44 +0000 2008 -------
ps, this works fine in continuum

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

Reply | Threaded
Open this post in threaded view
|

[Issue 2141] outofmemory running maven site plugin

tonynys
In reply to this post by tonynys
https://hudson.dev.java.net/issues/show_bug.cgi?id=2141






------- Additional comments from [hidden email] Wed Jul 30 05:54:03 +0000 2008 -------
I looked at the source code and the MavenProcessFactory is called to create the
maven java process (once since it is cached for performance)
there, in the method buildMavenCmdLine() i saw how the java process was created,
and the jvm args were set. Then i saw that it also includes the MAVEN_OPTS.
If i've setted those MAVEN_OPTS in the catalina.bat, it did not work,
but i didn't see at first the extra MAVEN_OPTS advanced setting on project level.
So I've set this setting on hudson project level maven advanced: -Xmx768M
-XX:MaxPermSize=256M
And when I now look at the console output, it is included and I should not
longer run outofmem.
I think the docs should be more clear on that, there is a faq about this, but
not with this explanation, setting

--------------


started

$ java -Xmx768M -XX:MaxPermSize=256M -cp
C:\apache-tomcat-5.5.23\webapps\hudson\WEB-INF\lib\maven-agent-1.238.jar;C:\apache-maven-2.0.9\boot\classworlds-1.1.jar
hudson.maven.agent.Main C:\apache-maven-2.0.9
C:\apache-tomcat-5.5.23\webapps\hudson\WEB-INF\lib\remoting-1.238.jar
C:\apache-tomcat-5.5.23\webapps\hudson\WEB-INF\lib\maven-interceptor-1.238.jar 4263

channel started

[INFO]

NOTE: Maven is executing in offline mode. Any artifacts not already in your local

repository will be inaccessible.





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

Reply | Threaded
Open this post in threaded view
|

[Issue 2141] outofmemory running maven site plugin

subbaer
In reply to this post by tonynys
https://hudson.dev.java.net/issues/show_bug.cgi?id=2141






------- Additional comments from [hidden email] Wed Apr 22 20:54:58 +0000 2009 -------
We are running into the same problems.
Found another report for this issue at
http://jira.codehaus.org/browse/SONARPLUGINS-16.

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

Reply | Threaded
Open this post in threaded view
|

[Issue 2141] outofmemory running maven site plugin

mdonohue
In reply to this post by tonynys
https://hudson.dev.java.net/issues/show_bug.cgi?id=2141



User mdonohue changed the following:

                What    |Old value                 |New value
================================================================================
                  Status|NEW                       |RESOLVED
--------------------------------------------------------------------------------
              Resolution|                          |INVALID
--------------------------------------------------------------------------------




------- Additional comments from [hidden email] Sat Apr 25 15:17:48 +0000 2009 -------
Based on the comment from tonynys Wed Jul 30 05:54:03, this issue was resolved
by using the 'advanced' configuration option.

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

Reply | Threaded
Open this post in threaded view
|

[Issue 2141] outofmemory running maven site plugin

mdonohue
In reply to this post by tonynys
https://hudson.dev.java.net/issues/show_bug.cgi?id=2141






------- Additional comments from [hidden email] Sat Apr 25 15:20:26 +0000 2009 -------
*** Issue 3073 has been marked as a duplicate of this issue. ***

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