Failed to launch JVM: Error code -4
I worked on my WebStorm today, (last release: 7.0.2). I shutdown my computer one hour ago, and now I can't start my WebStorm.
"Failed to launch JVM: Error code -4"
IntelliJ IDEA and PhpStorm work both.
What can I do? ...
Thanks.
请先登录再写评论。
I think I identified the issue.
Three days ago, I got a problem with WebStorm, it said that it doesn't have enough RAM to proccess. So I upgraded the RAM available from 512Mo to 1024Mo.
I didn't restart my computer since.
And now, he get that its properties changed and refuse to start.
To correct it you have to change the file in :
YOUR_FOLDER\WebStorm 7.0.2\bin\WebStorm.exe.vmoptions
Content of my file:
-server
-Xms128m
-Xmx1024m // <= This is probably my issue. Should be 512m even if I don't get why it cannot start cause I've 6Go...
-XX:MaxPermSize=250m
-XX:ReservedCodeCacheSize=64m
-ea
-Dsun.io.useCanonCaches=false
-Djava.net.preferIPv4Stack=true
-XX:+UseCodeCacheFlushing
-XX:+UseConcMarkSweepGC
-XX:SoftRefLRUPolicyMSPerMB=50
I uninstalled it before understand what was the problem. But I hope next people will find this topic before.
Please check these links for some info on how it works:
Thank you for the links, interesting.