Home>Article>Development Tools> What should I do if phpstorm cannot be opened after setting the memory limit?

What should I do if phpstorm cannot be opened after setting the memory limit?

藏色散人
藏色散人 forward
2021-12-02 14:56:46 3117browse

The following tutorial column ofphpstormwill introduce to you the problem that phpstorm cannot be opened after setting the memory limit. I hope it will be helpful to friends in need!

Specific problem description:

phpsotrm cannot be opened after configuring the maximum memory limit

phpstorm10. When editing a file, the file was copied. 40w rows of data, then phpstorm pops up the memory configuration interface, asking to increase the memory limit, set -Xmx512m to 2048, then select dump memory, then select shutdown, close phpstorm, and then phpstorm cannot be opened. The running environment is win7, then open the phpstorm startup script phpstorm.bat from the command line, prompting Error occurred during initialization of VM, Could not reserve enough space 2097152KB (2048M) object heap, modified the phpstorm startup configuration file phpstorm.exe.vmoptions,

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

The default configuration file is like this. After reinstalling phpstorm, changing the installation path does not work. Clicking the phpstorm icon to start has no response

Solution:

The real configuration file of phpstorm under win is not PhpStorm.exe.vmoptions in the bin folder of the phpstorm installation directory. The real configuration file is under the user directory, that is, in the C:Usersyourname.PhpStorm2016.2 folder. Modify PhpStorm.exe. The configuration information in vmoptions is sufficient. Just modify -Xmx1024m to the required memory limit

The above is the detailed content of What should I do if phpstorm cannot be opened after setting the memory limit?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:segmentfault.com. If there is any infringement, please contact admin@php.cn delete