Hi Everyone,

I'm trying to get a maven project of mine to build in jenkins.  I've been 
using one root pom and making modules for every project I've done at school 
(up to almost 30 modules).  To build this on my local machine, I needed to 
set MAVEN_OPTS="-XX:MaxPermSize=1024m". I've been trying allocating much to 
my jenkins VM but nothing seems to resolve my issue.  These are the last 
settings I tried.  

Global maven project configuration; Global MAVEN_OPTS
"-XX:MaxPermSize=3072m -Xmx2048m -Xms2048m"


Filesystem settings in /etc/defaults/jenkins
JAVA_ARGS="$JAVA_ARGS -Xms2048m -Xmx2048m -XX:MaxPermSize=3072m

After I restart jenkins and attempt a build, I watch htop on the VM and the 
system memory usage never seems to exceed 2gb, and I see the options I set 
in /etc/defaults/jenkins in htop.  My build fails at the same spot every 
time. Could I be missing some other configuration? Any ideas?

[ERROR] Failed to execute goal 
com.liferay.maven.plugins:liferay-maven-plugin:6.2.0-ga1:build-css 
(default) on project contacts: null: MojoExecutionException: 
InvocationTargetException: PermGen space -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute 
goal com.liferay.maven.plugins:liferay-maven-plugin:6.2.0-ga1:build-css 
(default) on project contacts: null
at 
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:217)
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.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at 
org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
at 
org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
at 
org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
Caused by: org.apache.maven.plugin.MojoExecutionException
at 
com.liferay.maven.plugins.AbstractLiferayMojo.execute(AbstractLiferayMojo.java:82)
at 
org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
at 
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
... 19 more
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at 
com.liferay.maven.plugins.AbstractLiferayMojo.executeTool(AbstractLiferayMojo.java:218)
at 
com.liferay.maven.plugins.SassToCssBuilderMojo.doExecute(SassToCssBuilderMojo.java:90)
at 
com.liferay.maven.plugins.AbstractLiferayMojo.execute(AbstractLiferayMojo.java:75)
... 21 more
Caused by: java.lang.OutOfMemoryError: PermGen space
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:792)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:449)
at java.net.URLClassLoader.access$100(URLClassLoader.java:71)
at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at 
org.jruby.gen.org$jruby$RubyModule$Populator.populate(org$jruby$RubyModule$Populator.java:25)
at 
org.jruby.RubyModule.defineAnnotatedMethodsIndividually(RubyModule.java:673)
at org.jruby.RubyModule.defineAnnotatedMethods(RubyModule.java:561)
at org.jruby.RubyModule.createModuleClass(RubyModule.java:140)
at org.jruby.Ruby.initRoot(Ruby.java:1140)
at org.jruby.Ruby.init(Ruby.java:1071)
at org.jruby.Ruby.newInstance(Ruby.java:182)
at 
org.jruby.embed.internal.LocalContext.getThreadSafeRuntime(LocalContext.java:69)
at 
org.jruby.embed.internal.ThreadSafeLocalContextProvider.getRuntime(ThreadSafeLocalContextProvider.java:61)
at org.jruby.embed.ScriptingContainer.put(ScriptingContainer.java:1091)
at 
com.liferay.portal.scripting.ruby.RubyExecutor.doEval(RubyExecutor.java:181)
at 
com.liferay.portal.scripting.ruby.RubyExecutor.eval(RubyExecutor.java:229)
at 
com.liferay.portal.scripting.ruby.RubyExecutor.eval(RubyExecutor.java:129)
at 
com.liferay.portal.tools.SassToCssBuilder._parseSassFile(SassToCssBuilder.java:289)
at 
com.liferay.portal.tools.SassToCssBuilder._parseSassDirectory(SassToCssBuilder.java:248)
at 
com.liferay.portal.tools.SassToCssBuilder.<init>(SassToCssBuilder.java:144)
at com.liferay.portal.tools.SassToCssBuilder.main(SassToCssBuilder.java:94)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
[ERROR] 
[ERROR] 
[ERROR] For more information about the errors and possible solutions, 
please read the following articles:
[ERROR] [Help 1] 
http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
[ERROR] 
[ERROR] After correcting the problems, you can resume the build with the 
command
[ERROR]   mvn <goals> -rf :contacts

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/69d1c178-3eae-495b-9f17-5ed39f00acc1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to