Search code examples
javaeclipsetomcattomcat7permgen

Tomcat 7 PermGen Space or Failed to Create JVM


I'm currently searching for any help about this.
I'm trying to start a Tomcat 7 server, but I only get PermGen Space exception.

I tried to change the XXMaxPermSize value, but when I change it, I get a Pop Up at launch of my Eclipse :

"Failed to Create the JVM"

I already had this error before (the Failed to Create the JVM), and it appeared suddenly. Never changed the configuration of my eclipse, but one day to the other, this happened and needed to change de memory allocation in my .ini file.

It's perfectly fine to run Tomcat 6, but I guess Tomcat 7 is way more consuming

Here is my Eclipse .ini :

-startup
plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.100.v20110502
-vm
C:/Program Files (x86)/Java/jdk1.6.0_45/bin
-product
org.eclipse.epp.package.jee.product
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
256M
-showsplash
org.eclipse.platform
-vmargs
-Dosgi.requiredJavaVersion=1.6
-Xms384m
-Xmx1024m

The problem is coming from the launcher.XXMaxPermSize.
Impossible to increase the value, otherwise, Eclipse just won't launch.
It launches with 256M but crashes with 512...

This can't be a Hardware limitation though since my PC got 8G RAM.

Any idea? Am I missing something obvious?


Solution

  • Problem solved :