java.lang.OutOfMemoryError: PermGen space

404 views
Skip to first unread message

Mickeys

unread,
Jun 28, 2011, 2:25:44 PM6/28/11
to Jenkins Users
Hi,

I am running jenkins as a windows service and get
java.lang.OutOfMemoryError: PermGen space. I have tried to change the
JAVA_OPTS to make it run but cant figure out why it doesnt run.

Any suggestions?



JAVA_OPTS -Xms256m -Xmx1024m -Xss96k -XX:MaxPermSize=256m -server


20:14:26 [ERROR] BUILD FAILURE
20:14:26 [INFO]
------------------------------------------------------------------------
20:14:26 [INFO] Compilation failure
20:14:26 Failure executing javac, but could not parse the error:
20:14:26
20:14:26
20:14:26 The system is out of resources.
20:14:26 Consult the following stack trace for details.
20:14:26 java.lang.OutOfMemoryError: PermGen space
20:14:26 at java.lang.ClassLoader.defineClass1(Native Method)
20:14:26 at java.lang.ClassLoader.defineClassCond(ClassLoader.java:
632)
20:14:26 at java.lang.ClassLoader.defineClass(ClassLoader.java:616)
20:14:26 at
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:
141)
20:14:26 at java.net.URLClassLoader.defineClass(URLClassLoader.java:
283)
20:14:26 at java.net.URLClassLoader.access$000(URLClassLoader.java:
58)
20:14:26 at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
20:14:26 at java.security.AccessController.doPrivileged(Native
Method)
20:14:26 at java.net.URLClassLoader.findClass(URLClassLoader.java:
190)
20:14:26 at
org.codehaus.plexus.compiler.javac.IsolatedClassLoader.loadClass(IsolatedClassLoader.java:
56)
20:14:26 at java.lang.ClassLoader.defineClass1(Native Method)
20:14:26 at java.lang.ClassLoader.defineClassCond(ClassLoader.java:
632)
20:14:26 at java.lang.ClassLoader.defineClass(ClassLoader.java:616)
20:14:26 at
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:
141)
20:14:26 at java.net.URLClassLoader.defineClass(URLClassLoader.java:
283)
20:14:26 at java.net.URLClassLoader.access$000(URLClassLoader.java:
58)
20:14:26 at java.net.URLClassLoader$1.run(URLClassLoader.java:197)

Olivier Lamy

unread,
Jun 29, 2011, 3:56:29 AM6/29/11
to jenkins...@googlegroups.com
Hello
Try with forking compiler on windauze.
Compiler plugin 2.3.2 with cli option -Dmaven.compiler.fork=true

2011/6/28 Mickeys <mifl...@gmail.com>:

--
Olivier Lamy
http://twitter.com/olamy | http://www.linkedin.com/in/olamy

Fabi

unread,
Nov 8, 2011, 4:42:16 PM11/8/11
to jenkins...@googlegroups.com
Its maven.compile.fork

2011/6/29 Olivier Lamy <olive...@gmail.com>

Maureen Barger

unread,
Nov 8, 2011, 5:31:43 PM11/8/11
to jenkins...@googlegroups.com
FWIW I received this error just last week and got around it by changing the maven_opts of the _job_ not the jvm itself. Good luck!

Fabi

unread,
Nov 16, 2011, 1:33:30 PM11/16/11
to jenkins...@googlegroups.com
What did you change?
Please give us the exact parameter string.

2011/11/8 Maureen Barger <moba...@gmail.com>
Reply all
Reply to author
Forward
0 new messages