Solve the problem of stuck running of phpstorm!

WBOY
Release: 2016-07-29 08:50:49
Original
2813 people have browsed it

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:

  1. Find the phpstorm.vmoptions file and open it with Notepad.

  2. Add the following two lines of code:

-Dawt.usesystemAAF
-Dawt.java2d.opengl=true
Copy after login
  1. 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.

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!