Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PHPStorm7 "Failed to create JVM: error code -4" on startup

So today I tried to run my PHPStorm7 IDE and I got this error :

Imgur

I get a "Failed to create JVM error"; how can I avoid it?

I found this related issue, but it didn't help me.

like image 948
Kubadev Avatar asked Aug 04 '14 15:08

Kubadev


1 Answers

So i just fixed my problem thanks to @lena :

Edit the Phpstorm.exe.vmoptions file (IDE_HOME\bin\Phpstorm.exe.vmoptions) :

-Xms128m
-Xmx2048m
-XX:MaxPermSize=250m
-XX:ReservedCodeCacheSize=64m
-XX:+UseCodeCacheFlushing
-ea
-Dsun.io.useCanonCaches=false

And reduce -Xmx value step by step reducing by 100m every time until it starts.

like image 140
Kubadev Avatar answered Oct 19 '22 15:10

Kubadev