Home >Backend Development >PHP Tutorial >Solve the problem of stuck running of phpstorm!
When I use phpstorm to develop projects recently, as long as I load a javascript file, no matter how big it is, if the project file has a lot of data, phpstorm can get stuck and freeze. I have adjusted the memory settings, turned off dynamic prompts, and used phpstorm's safe mode, but none of them can solve the card problem. I also tried to give up phpstorm and use other IDE development instead. But they are not as easy to use as phpstorm. There was no way, I couldn't find a solution on Baidu in China, so I had to go out and look for it.
Finally, I saw different answers in a foreign forum. As long as two JAVA virtual machine parameters are modified, the card problem is completely solved.
The steps are as follows:
Find the phpstorm.vmoptions file and open it with Notepad.
Add the following two lines of code:
-Dawt.usesystemAAF -Dawt.java2d.opengl=true
Save and exit.
Thinking:
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.
Now you can use the familiar environment of phpstorm again.
Note:
The technology used in the project is: yii2 + extjs 6.0.1 + mysql
The above introduces how to solve the problem of phpstorm running stuck! , including phpstorm content, I hope it will be helpful to friends who are interested in PHP tutorials.