Find the JetBrains\PhpStorm 2017.1.4\bin\ directory: (Recommended learning: phpstorm)
phpstorm.exe.vmoptions
First adjust the memory limit:
-Xms256m -Xmx2048m -XX:MaxPermSize=350m
Then set the JAVA virtual machine parameters:
Append the following code:
-Dawt.usesystemAAFontSettings=lcd -Dawt.java2d.opengl=true
phpstorm is developed using JAVA. Since the IDE provides the source file keyword rendering function, any editing of the file or the movement of the mouse will trigger the rendering operation.
The default JAVA environment of phpstorm does not use the machine's hardware acceleration technology to achieve real-time rendering, so of course the system will freeze.
As long as the system uses hardware acceleration by default in the JAVA environment, the problem of occupying too much system resources and causing phpstorm to freeze can be solved.
The above is the detailed content of Optimize phpstorm running lag problem. For more information, please follow other related articles on the PHP Chinese website!