T
T
tuxx2016-04-29 22:23:22
phpstorm
tuxx, 2016-04-29 22:23:22

Failed to create JVM: erro code -6?

PhpStorm broke after changing VM Options. Requires JAVA_HOME to be set (failed to create jvm: error code -6). JAVA_HOME has been set to both system and user environment variables in environment variables. Updated JDK and JRE to latest version. And I installed both 32 and 64 bit on Windows 8.1 64bit. The vm options files themselves retained only the default values.


PhpStrom.exe.vmoptions:
-server
-Xms128m
-Xmx512m
-XX:MaxPermSize=256m
-XX:ReservedCodeCacheSize=240m
-XX:+UseConcMarkSweepGC
-XX:SoftRefLRUPolicyMSPerMB=50
-ea
-Dsun.io.useCanonCaches=false
-Djava.net. preferIPv4Stack=true
-XX:+HeapDumpOnOutOfMemoryError
-XX:-OmitStackTraceInFastThrow

PhpStorm64.exe.vmoptions:
-Xms128m
-Xmx512m -XX: MaxPermSize
=256m
-XX:ReservedCodeCacheSize=240m
-XX:+ UseConcMarkSweep0MBeaPun -S .io.useCanonCaches=false -Djava.net.preferIPv4Stack=true
-XX:+HeapDumpOnOutOfMemoryError
-XX:-OmitStackTraceInFastThrow


Changing these parameters prompted today's video from Loftblog . Changed the settings to:

-Xms256m
-Xmx1024m
-XX:MaxPermSize=400m
-XX:ReservedCodeCacheSize=300m
-XX:+UseConcMarkSweepGC
-XX:SoftRefLRUPolicyMSPerMB=50
-ea
-Dsun.io.useCanonCaches=false
-Djava.net.preferIPv4Stack=true
-XX:+HeapMemorDumpError
-XX:-OmitStackTraceInFastThrow

-XX :+UseCompressedOops
-Dawt.useSystemAAFontSettings=lcd
-Dawt.java2d.opengl=true


b37a8877c0dc47eeadf3fe0e3dba669f.jpg

a136b68c266c46ac9237a17d17d29934.jpg

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question