Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

CPU load #108

Open
KilianMahe opened this issue Feb 27, 2018 · 17 comments
Open

CPU load #108

KilianMahe opened this issue Feb 27, 2018 · 17 comments

Comments

@KilianMahe
Copy link

I see a constant CPU usage when this package is enabled. 25% by the PHP binary and 25% by Atom (change often). Even when I don't do anything.
See screenshot.
process
process2

My project is in Drupal 8
Atom 1.24.0
atom-ide-ui 0.9.1
ide-php 0.7.7.7
php 7.1.14
Windows 7

@rsese
Copy link

rsese commented Mar 1, 2018

Do you have this issue with any project? If I just open a project with a few small test PHP files on Windows 10, I don't see similar behavior but if I try https://github.com/drupal/drupal for example, the CPU usage spikes around ~60-70%.

Maybe the same or similar to #104?

@KilianMahe
Copy link
Author

I tested with another very simple PHP project and I don't see any particular load.
So probably linked to the complexity of a Drupal project.
Any tips ?

@Moini
Copy link

Moini commented Mar 10, 2018

My php project is rather small (maybe 30 php files in the whole project, only 4 or 5 open, none of the open ones longer than 150 lines), but I also experienced this issue. Had to disable this, because it got really loud... 🎧

@ventikus
Copy link

Same here, this problem occurs when at least one file is actively open.

@ynot729
Copy link

ynot729 commented May 8, 2018

+1 it overloads my Mac system as well.

@ciscon
Copy link

ciscon commented May 18, 2018

same in linux with 1.27:
sh -c '/usr/bin/php7.2' '-c' '/tmp/BANRFv' 'felixfbecker/language-server/bin/php-language-server.php' '--memory-limit=2G'
at 100%

@german-rios-gonzalez
Copy link

Just like @ciscon I have atom 1.27 in linux and a large collection of php files, the package take one of my cores 100% and after 14 hours and counting it's still do it. I have a Lenovo Y50-70 with and ssd so I think it's not a machine problem.

@ciscon
Copy link

ciscon commented Jun 8, 2018

this would be acceptable if the results were cached in some way, but it happens every start which means that for now i have to completely disable this package.

@felipevolpatto
Copy link

Is there any progress being made on this?

@damieng
Copy link
Contributor

damieng commented Jun 12, 2018

Unfortunately this is outside the control of ide-php as it is the upstream language server.

@webbower
Copy link

Running into the same issue. Noticed a dozen php processes running at 25-60% of CPU after leaving open for multiple days. Computer started bogging down and fan was running hot. I only installed this a few days ago. Quit and restarted Atom and single php process running at 100%. MacBook Pro 10.13.6, Atom 1.31.2.

Re: @damieng's comment about it being the language server: felixfbecker/php-language-server#465

@benjaminkohl
Copy link

I notice that if I have one project open and one PHP file open, my Mac's fans start running hard and I see a php process running at 99% CPU. Sometimes the same process is also using nearly 1 GB of memory. I have many of the IDE's features disabled. I mainly want the method/property name outline in the sidebar so I am not sure why so much CPU/memory is being used.

@ihafkenschiel
Copy link

For me, it was the ide-php extension. When I disabled it, the problem went away.

@jwohlfeil
Copy link

Same for me with magento2 projects, the ide-php package is eating my cpu. I can solve it adding only specific folders to my workspace like app and vendor. I think that monitoring all the changes in big projects is causing the problem.

@webbower
Copy link

I suspect that this will never be fixed since Facebook retired Nuclide/Atom IDE. Might be time to figure out alternatives for PHP in Atom. https://nuclide.io

@benjaminkohl
Copy link

For what it's worth, I primarily used the PHP IDE just to have the list of properties/classes in the right panel, so it was a bit overkill for my purposes anyway. I stopped using the IDE and just use the Symbols List package now which doesn't cause CPU or memory spikes.

Symbols List package

@philoSurfer
Copy link

philoSurfer commented Aug 1, 2019

I suspect that this will never be fixed since Facebook retired Nuclide/Atom IDE. Might be time to figure out alternatives for PHP in Atom. https://nuclide.io

This issue is not to do with ide-php so much as it is the upstream PHP server that is runs to evaluate PHP.
See: felixfbecker/php-language-server#465

I think the ideal situation would be to give the option to run a different php (like native OS's PHP ? or a mapped container path)

They are looking for PR's on that project. :^D Maybe we circle the wagons and get this resolved. It is affecting other projects that depend on it as well, including VSCODE.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests