-
Notifications
You must be signed in to change notification settings - Fork 185
Cpu load, memory leak #465
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I also see a PHP process start and utilize a full core of my CPU as soon as I open VSCode. OSX 10.12.5 EDIT: Err, it seems to be gone now. I saw it running for a while last night, maybe it just took a while to scan my current project? It is rather large. |
"All 8812 PHP files parsed in 492 seconds. 160 MiB allocated" |
What is the bug here? The language server needs to build it's index the first time when it's not cached, it's expected that this takes some CPU and RAM |
It looks like there's no caching, and every time you open a project with VS CODE, a parsing process is opened. |
dependencies are cached |
+1 i have the same problem. Everytime i relaunch Vscode, parsing starts from begining and dependencies are not cached - it may be because i have 2 separate folders and each of them has one composer.lock file. |
Ubuntu 17.10
|
I'm seeing this too, even when launching simple projects. |
Could you try setting |
I have found a bug with the recent foreach handling, this is a case that causes an infinite loop: $a = [];
foreach ($a as $k => $a) {
} I have a fix but it's not very nice yet, working on it. @jens1o you say the project you're seeing this on is simple, can you confirm if you have something like the above? Another example is foreach ($a->getArray() as $k => $a) {
} Edit: to be clear, the issue I'm seeing occurs when you overwrite the variable being iterated with the foreach value, in the cases above, |
Yes, it has. It really looks like an infinite loop. |
I have the same problem, PHP Language Server consume 100% cpu and Load average is +10. |
Is this still happening? |
It is still happening. I came from atom/ide-php#108 and I had to disable the atom extension because of the high CPU usage. php-ide version: 0.7.18 |
Also having this problem on Ubuntu 18.04 + Atom and VS Code |
This may be related in some way to a bug I was having in my own extension. In my extension, I notice that php child processes were failing to be killed and continue to absorb memory and cpu power. I hacked around this on linux platforms by being really aggressive about killing child processes like this:
and then calling it on a timeout. I have not taken the time to develop a similar method for windows or see if this works on osx but I think. Anyway I don't know if thats helpful, but it could be a similar problem. |
Still having this issue: OS: Mac OS 10.15 |
same issue for me when installing PHP intelliSense or PHP intelephense the PHP language server starts using almost 100 percent CPU. So issue is not only with PHP intelliSense but also with PHP intelephense |
This project isn't maintained - last stable commit 3+ years ago. |
thanks @mfuery , did not notice |
mac sierra
Code 1.15.1
Php instellisense 1.15.0
php 7.1.6_18
Cpu load 95% with no tabs opened, memory usage gradually increased by 1-2 mb in 10 secs
Maybe this will help:
[
php_intellisense_1.5.0.txt
](url)
The text was updated successfully, but these errors were encountered: