Skip to content
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

High cpu and memory usage on Ubuntu 20.04 #73

Open
dassio opened this issue Aug 18, 2020 · 7 comments
Open

High cpu and memory usage on Ubuntu 20.04 #73

dassio opened this issue Aug 18, 2020 · 7 comments
Assignees

Comments

@dassio
Copy link

dassio commented Aug 18, 2020

Describe the bug
High CPU and Memory Usage

To Reproduce
open any php file

Expected behavior
low cpu and memory usage

Screenshots
danny@xps:~$ pstree -a -p -s 773113

systemd,1 splash
  └─systemd,1733 --user
      └─gnome-terminal-,3920
          └─bash,772149
              └─vim,773097 test.php
                  └─node,773098 --no-warnings /home/danny/.vim/plugged/coc.nvim/build/index.js
                      └─node,773113 /home/danny/.config/coc/extensions/node_modules/coc-phpls/node_modules/intelephense/lib/intelephense.js --node-ipc --clientProcessId=773098
                          ├─{node},773114
                          ├─{node},773115
                          ├─{node},773116
                          ├─{node},773117
                          ├─{node},773118
                          ├─{node},773119
                          ├─{node},773120
                          ├─{node},773121
                          ├─{node},773122
                          └─{node},773123
danny@xps:~$ ps -p 773113 -o %cpu,%mem,cmd
%CPU %MEM CMD
 174  9.0 /usr/bin/node /home/danny/.config/coc/extensions/node_modules/coc-phpls/node_modules/intelephense/lib/intelephense.js --node-ipc --clientProcessId=773098

Desktop (please complete the following information):

  • OS: Ubuntu 20.04.1 LTS
  • Version : 2.1.10

Additional context
Add any other context about the problem here.

@dassio dassio changed the title Hight cpu and memory usage on Ubuntu 20.04 High cpu and memory usage on Ubuntu 20.04 Aug 18, 2020
@artfulrobot
Copy link

artfulrobot commented Oct 6, 2020

I get this problem - it can completely lock up my system until (I think) the OOM kills node. I don't know why it gets in a knot sometimes and not others.

I'm on Debian 10.
nvim version: NVIM v0.4.3
node version: v10.16.0
coc.nvim version: 0.0.71-a1e2f4afac

@qiao-summer
Copy link

I have this problem too, reason is coc-phpls extensions,But I don't know how to solve it.

@artfulrobot
Copy link

Yes I've had to disable/uninstall coc-phpls on some servers.

@twouters
Copy link

twouters commented Dec 3, 2020

This happens when I open a PHP file in my homedir though coc reports the following when opening the file:

[coc.nvim] Ignored rootPath /home/twouters of client "languageserver.intelephense"

With strace I could clearly see the plugin scanning my whole home directroy.

@ArsenalNox
Copy link

Got this problem twice on two different arch linux installations. This problem always occurs then I run nvim and edit file from any other directory besides file root directory and never if directly in it.

Neovim v0.4.4
node.js v15.14.0
Coc.nvim 0.0.80-2dbe0ae611
Coc-phpls 2.2.0

@bellaichef
Copy link

bellaichef commented Jan 28, 2022

Hi,

I have a similare issue on Ubuntu 16.04 with VIM 8, Coc-phpls. Anybody has a tip for this, it can stuck the whole server.

My config :

  • Ubuntu 16.04.7
  • Vim 8.2.2359
  • Coc-phpls 2.2.1
  • Coc-html 1.5.1
  • Tmux 2.1

@rosmanov
Copy link

rosmanov commented Jan 28, 2022

I see an extremely high memory usage when I open two instances of NeoVim in different projects:

  1. a huge PHP project
  2. a Go project with some PHP files.

The problem occurs when I:

  • open a PHP file in the first (big) project in an nvim process 1;
  • open a .go file in the second project in an nvim process 2;
  • open a small PHP file in the nvim process 2.

Memory usage grows endlessly until I kill the nvim processes. I'm not sure if it's 100% reproducible though.

There is definitely a leak somewhere, but I haven't had the time to collect the information necessary for a bug report. But here is some information about my setup:

  • Relevant CoC extensions: coc-go 1.1.0, coc-phpls 2.2.1
  • CocInfo:
vim version: NVIM v0.6.1
node version: v16.13.0
coc.nvim version: 0.0.80-7ca312f3e4
coc.nvim directory: /home/ruslan/.vim/plugged/coc.nvim
term: tmux
platform: linux
  • PHP version: PHP 8.0.14 (cli) (built: Dec 16 2021 03:01:07) ( NTS gcc x86_64 )

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

No branches or pull requests

8 participants