maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From John Miller <john.w.mil...@oracle.com>
Subject I need help with a "maven-pmd-plugin" OutOfMemoryError: Java heap space Error.
Date Fri, 22 Feb 2013 16:11:29 GMT
I need some help with a "maven-pmd-plugin"  OutOfMemoryError: Java heap space error.

I narrowed it down to "maven-pmd-plugin" running inside Hudson. 

I am running with these java settings
JAVA_OPTS="-Xmn1024m -Xms2048m -Xmx2048m -XX:PermSize=512m"
So I should have plenty of room..

I also ran it from the command line 
mvn -e clean pmd:pmd
 and got the same error.

Any Ideas??

Thanks


[INFO] ------------------------------------------------------------------------
[INFO] Building TBI common objects package 2.0.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ oracle.tbi.common.entities ---
[INFO] 
[INFO] --- maven-pmd-plugin:3.0:pmd (default-cli) @ oracle.tbi.common.entities ---
mavenExecutionResult exceptions not empty
java.lang.OutOfMemoryError: Java heap space
	at java.util.Arrays.copyOf(Arrays.java:2882)
	at java.lang.AbstractStringBuilder.expandCapacity(AbstractStringBuilder.java:100)
	at java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:390)
	at java.lang.StringBuffer.append(StringBuffer.java:224)
	at java.io.StringWriter.write(StringWriter.java:95)
	at java.io.PrintWriter.write(PrintWriter.java:412)
	at java.io.PrintWriter.write(PrintWriter.java:429)
	at org.apache.maven.doxia.sink.XhtmlBaseSink.write(XhtmlBaseSink.java:2031)
	at org.apache.maven.doxia.siterenderer.sink.SiteRendererSink.write(SiteRendererSink.java:337)
	at org.apache.maven.doxia.sink.XhtmlBaseSink.table_(XhtmlBaseSink.java:1205)
	at org.apache.maven.plugin.pmd.PmdReportListener.endFileSection(PmdReportListener.java:127)
	at org.apache.maven.plugin.pmd.PmdReportListener.processViolations(PmdReportListener.java:191)
	at org.apache.maven.plugin.pmd.PmdReportListener.endDocument(PmdReportListener.java:337)
	at org.apache.maven.plugin.pmd.PmdReport.generateReport(PmdReport.java:305)
	at org.apache.maven.plugin.pmd.PmdReport.execute(PmdReport.java:194)
	at org.apache.maven.plugin.pmd.PmdReport.executeReport(PmdReport.java:168)
	at org.apache.maven.reporting.AbstractMavenReport.generate(AbstractMavenReport.java:190)
	at org.apache.maven.reporting.AbstractMavenReport.execute(AbstractMavenReport.java:99)
	at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
	at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
	at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
	at org.jvnet.hudson.maven3.launcher.Maven3Launcher.main(Maven3Launcher.java:79)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
channel stopped


Thanks
John


 

John W. Miller.
Senior Software Engineer | Library Engineering
500 Eldorado Blvd, UBRM05-2096
Broomfield CO, 80021
Work Office: 13032721067
Email:  HYPERLINK "mailto:john.w.miller@oracle.com" john.w.miller@oracle.com
 


Mime
View raw message