Home > Backend Development > PHP Tutorial > Detailed explanation of the slow running problem of PHP editor PhpStrom

Detailed explanation of the slow running problem of PHP editor PhpStrom

墨辰丷
Release: 2023-03-27 21:28:01
Original
2149 people have browsed it

This article mainly introduces the method to solve the slow running problem of PHP editor PhpStrom, which has a very good reference value. Let’s take a look at it with the editor.

When I used phpstorm to develop projects recently, in When loading a file and running it, no matter how big it is, if the project file has a lot of data, it can cause phpstorm to 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.usesystemAAFontSettings=lcd 
-Dawt.java2d.opengl=true
Copy after login

3. 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.

The above is the entire content of this article, I hope it will be helpful to everyone's study.


Related recommendations:

PHP EditorInstallation and environment construction

PHP EditorPhpStrom runs slowly

10 Free PHP Editor/Development Tools_PHP Tutorial

The above is the detailed content of Detailed explanation of the slow running problem of PHP editor PhpStrom. For more information, please follow other related articles on the PHP Chinese website!

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