LINUX.ORG.RU

Очень высокая нагрузка на процессор при использовании intelephense.

 , ,


0

1

При использовании lsp-mode’a процессор почти долбится в сотку. У меня есть ещё скачанный astronvim, там тоже есть intelephense и нагрузка не привышает и 30% - 50%. С чем это может быть связанно? Можно ли его как-т граматно настроить? Не спорю, компьютер у меня слабенький, но что поделать. С другими языками всё +- хорошо.

Компьютер (inxi -b):

System:
  Host: artixlinux Kernel: 6.10.6-artix1-1 arch: x86_64 bits: 64
  Desktop: i3 v: 4.23 Distro: Artix Linux
Machine:
  Type: Desktop Mobo: ASUSTeK model: P8H61-M LE/USB3 v: Rev x.0x
    serial: <superuser required> BIOS: American Megatrends v: 0801
    date: 09/26/2011
CPU:
  Info: dual core Intel Core i3-2100 [MT MCP] speed (MHz): avg: 1802
    min/max: 1600/3100
Graphics:
  Device-1: Intel 2nd Generation Core Processor Family Integrated Graphics
    driver: i915 v: kernel
  Display: x11 server: X.Org v: 21.1.13 with: Xwayland v: 24.1.2 driver: X:
    loaded: modesetting failed: vesa dri: crocus gpu: i915
    resolution: 1920x1080~60Hz
  API: OpenGL Message: Unable to show GL data. glxinfo is missing.
Network:
  Device-1: Realtek RTL8111/8168/8211/8411 PCI Express Gigabit Ethernet
    driver: r8169
Drives:
  Local Storage: total: 1.28 TiB used: 381.36 GiB (29.0%)
Info:
  Memory: total: 16 GiB note: est. available: 15.1 GiB used: 2.72 GiB (18.0%)
  Processes: 183 Uptime: 12m Shell: emacs inxi: 3.3.35

lsp-log:

Command "semgrep lsp" is not present on the path.
Command "/home/tux/.config/composer/vendor/phpactor/phpactor/bin/phpactor language-server" is not present on the path.
Command "serenata.phar -u 0" is not present on the path.
Command "/usr/bin/intelephense --stdio" is present on the path.
Command "semgrep lsp" is not present on the path.
Command "/home/tux/.config/composer/vendor/phpactor/phpactor/bin/phpactor language-server" is not present on the path.
Command "serenata.phar -u 0" is not present on the path.
Command "/usr/bin/intelephense --stdio" is present on the path.
Found the following clients for /tmp/vrem/index.php: (server-id iph, priority -1), (server-id php-ls, priority -3)
The following clients were selected based on priority: (server-id iph, priority -1)
Initialising intelephense 1.10.4
Reading state from /home/tux/.emacs.d/lsp-cache/25f44211.
Initialised in 19 ms
Environment changed. Refreshing 1 in memory documents.
Searching file:///usr/lib/node_modules/intelephense/lib/stub for files to index.
Searching file:///tmp for files to index.
Searching file:///home/tux for files to index.
Cancelling textDocument/hover(70) in hook after-change-functions
Command "semgrep lsp" is not present on the path.
Command "/home/tux/.config/composer/vendor/phpactor/phpactor/bin/phpactor language-server" is not present on the path.
Command "serenata.phar -u 0" is not present on the path.
Command "/usr/bin/intelephense --stdio" is present on the path.
Command "semgrep lsp" is not present on the path.
Command "/home/tux/.config/composer/vendor/phpactor/phpactor/bin/phpactor language-server" is not present on the path.
Command "serenata.phar -u 0" is not present on the path.
Command "/usr/bin/intelephense --stdio" is present on the path.
Found the following clients for /home/tux/http/index.php: (server-id iph, priority -1), (server-id php-ls, priority -3)
The following clients were selected based on priority: (server-id iph, priority -1)
Cancelling textDocument/hover(88) in hook after-change-functions
Cancelling textDocument/hover(94) in hook after-change-functions
Ответ на: комментарий от kirill_rrr

Intel Core i3-2100

А что не так? Вроде бы немного быстрее пеньтиум2, для текстового редактора должно хватать с большим запасом.

На редактор – да. На параллельный с этим запуск анализа кода в реальном времени – не факт.

hateyoufeel ★★★★★
()