java - Tomcat 7 PermGen Space or Failed to Create JVM -
i'm searching this.
i'm trying start tomcat 7 server, permgen space exception.
i tried change xxmaxpermsize value, when change it, pop @ launch of eclipse :
"failed create jvm"
i had error before (the failed create jvm), , appeared suddenly. never changed configuration of eclipse, 1 day other, happened , needed change de memory allocation in .ini file.
it's fine run tomcat 6, guess tomcat 7 way more consuming
here 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 coming launcher.xxmaxpermsize.
impossible increase value, otherwise, eclipse won't launch.
launches 256m crashes 512...
this can't hardware limitation though since pc got 8g ram.
any idea? missing obvious?
on windows, default, 32-bit processes can address 2 gib of memory (even if have more ram).
with 512 mib perm, plus 1 gib heap along jvm / library overhead you're exceeding this.
if run command line:
java -version you'll see output this:
java version "1.x.0_xx" java(tm) se runtime environment (build 1.x.0_xx-bxx) java hotspot(tm) client vm (build 25.31-b07, mixed mode, sharing) a 64-bit jvm this:
java version "1.x.0_xx" java(tm) se runtime environment (build 1.x.0_xx-bxx) java hotspot(tm) 64-bit server vm (build 24.75-b04, mixed mode) if it's on 64-bit system, upgrade 64-bit jvm (although possible configure windows allow bigger 32-bit processes on 64-bit system, 64-bit jvm preffered approach).
see answer further details:
https://stackoverflow.com/a/9533056/575766
you should know can request arbitrary values perm space (300, 384, 412 etc.). experimentation, may find have enough space start process 2 gib limit anyway.
Comments
Post a Comment