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

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

Imgur

I get the message "Could not create JVM error"; how can i avoid it?

I found this related problem , but it did not help me.

+7
java php intellij-idea jvm phpstorm
source share
4 answers

So, I just fixed my problem thanks to @lena:

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

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

And decrease the -Xmx value step by step, decreasing by 100 m each time until it starts.

+30
source share

This is a JVM problem; The Oracle JVM requires one block of continuous memory (more or less equal to the sum of the values ​​of the Xmx and XX: MaxPermSize parameters) to initialize. On Windows systems, 32-bit Java can allocate up to 1.5 GB. And any libraries that are embedded in the process memory will reduce this reliable block.

You can try to clean your system and remove / disable as many of these startup items as possible (context menu extensions, resident programs that can intercept global keys (for example, translator / dictionary, IM, fraps, some graphics drivers have hot keys and etc.). The PhpStorm.exe launcher itself can cause additional fragmentation, so I would suggest using PhpStorm.bat instead.

see also https://jetbrains.zendesk.com/entries/23393413 for some tips

+5
source share

You probably used a 64-bit version like me, if that changes the quick-launch program from {path}\PhpStorm.exe to {path}\PhpStorm64.exe

This worked for me without any other tricks.

+3
source share

I had the same problem after updating my computer (Ubuntu), I solve this problem by deleting the line -XX: MaxPermSize = 350m

0
source share

All Articles