Hudson build always ends in "java.lang.OutOfMemoryError: Java heap space" error

I had a problem with a Hudson build Windows XP slave 4 GB of RAM and in the batch file to call JNLP I indicated the following:

javaws -J-Xms1280m -J-Xmx1024m http://hudson-master.domain.com:8080/computer/Exige/slave-agent.jnlp

Why can't I give it more than 1 GB?

any help and suggestion would be very helpful.

Thanks AWT

The system is out of resources.
Consult the following stack trace for details.
java.lang.OutOfMemoryError: Java heap space
        at com.sun.tools.javac.util.List.prepend (List.java:145)
        at com.sun.tools.javac.jvm.ClassReader.openArchive (ClassReader.java:1457)
        at com.sun.tools.javac.jvm.ClassReader.list (ClassReader.java:1742)
        at com.sun.tools.javac.jvm.ClassReader.listAll (ClassReader.java:1882)
        at com.sun.tools.javac.jvm.ClassReader.fillIn (ClassReader.java:1903)
        at com.sun.tools.javac.jvm.ClassReader.complete (ClassReader.java:1538)
        at com.sun.tools.javac.code.Symbol.complete (Symbol.javahaps55)
        at com.sun.tools.javac.comp.Enter.visitTopLevel (Enter.java:256)
        at com.sun.tools.javac.tree.Tree $ TopLevel.accept (Tree.javahaps82)
        at com.sun.tools.javac.comp.Enter.classEnter (Enter.java:221)
        at com.sun.tools.javac.comp.Enter.classEnter (Enter.java:235)
        at com.sun.tools.javac.comp.Enter.complete (Enter.java:448)
        at com.sun.tools.javac.comp.Enter.main (Enter.java:433)
        at com.sun.tools.javac.main.JavaCompiler.compile (JavaCompiler.java:404)
        at com.sun.tools.javac.main.Main.compile (Main.java=92)
        at com.sun.tools.javac.main.Main.compile (Main.java=44)
        at com.sun.tools.javac.Main.compile (Main.java:85)
        at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke (Method.java=85)
        at org.codehaus.plexus.compiler.javac.JavacCompiler.compileInProcess (JavacCompiler.java:420)
        at org.codehaus.plexus.compiler.javac.JavacCompiler.compile (JavacCompiler.java:141)
        at org.apache.maven.plugin.AbstractCompilerMojo.execute (AbstractCompilerMojo.java:493)
        at org.apache.maven.plugin.CompilerMojo.execute (CompilerMojo.java:114)
        at org.apache.maven.plugin.DefaultPluginManager.executeMojo (DefaultPluginManager.java:483)
        at hudson.maven.agent.PluginManagerInterceptor.executeMojo (PluginManagerInterceptor.java:182)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals (DefaultLifecycleExecutor.java:678)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle (DefaultLifecycleExecutor.java=40)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal (DefaultLifecycleExecutor.java∗19)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures (DefaultLifecycleExecutor.java data71)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments (DefaultLifecycleExecutor.java data32)


[INFO] ----------------------------------------------- -------------------------
[INFO] For more information, run Maven with the -e switch [INFO] --------------------------------- ---------------------------------------
[INFO] Total time: 34 seconds
[INFO] Finished at: Fri Oct 08 17:27:59 EST 2010 [INFO] Final Memory: 25M / 63M [INFO] ---------------------- --------------------------------------------------

+3
source share
4 answers

If you have a master slave configuration, you must specify the memory settings in "Manage settings Hudson-> Configure system-> Global

The environment properties present on the Wizard are also used in the slave.

+1
source

Xms Xmx

+4

JVM ? Maven (), Maven ( Java Xmx).

, MAVEN_OPTS, , Maven Xmx.

+3

: 32- Windows Java 1 . , , ( , Sun JVM). 64- , JVM. 64- JVM, .

+1

Source: https://habr.com/ru/post/1768564/


All Articles