yaml-language-server
yaml-language-server copied to clipboard
memory usage skyrockets, computer significantly slowed down when open "git conflicted" yaml files
Once I opened multiple yaml files in git conflict, my computer slowed down significantly, I then use System Monitor to inspect processes and see that code ...redhat.vscode-yaml...
has an unusual high memory usage (≥ 2GB).
System Information: OS: Linux
Which version of vscode-yaml are you using?
If you set the yaml.trace.server
setting to verbose
in the vscode settings and then go to the YAML support
output channel is there any errors reported there?
I haven't been able to reproduce yet on 0.6.1. Were the multiple yaml files that had a git conflict open for a long time?
Which version of vscode-yaml are you using?
I am using the latest version from Microsoft marketplace.
If you set the
yaml.trace.server
setting toverbose
in the vscode settings and then go to theYAML support
output channel is there any errors reported there?
I yet have time for this. Reproducing this may potentially freeze my computer, force me to reboot, and potentially lose my works, so I am unwilling to do so.
Were the multiple yaml files that had a git conflict open for a long time?
Multiple yaml files in git conflict were opened for a short period of time. Each file for less than 1 seconds. I open each and delete immediately (I have a tool regenerate them afterward). I never have 2 or more opening files at any time.
For more context, these yaml files are pnpm-lock.yaml
, a lock file used by pnpm, it can be quite large depend on dependency tree.
@JPinkney my experience with vscode-xml is that computing the outline for very large files can be problematic on the memory usage front. You might want to introduce a preference to disable outline/documentSymbols
@KSXGitHub Do you have an estimation of the number of lines of the yaml file? Just so I can play around with testing. @fbricon could be right, it could just be trying to compute document symbols for a massive file
@JPinkney This is the monorepo: https://github.com/ksxnodeapps/fun-little-utilities
All yaml files are:
-
pnpm-lock.yaml
-
{packages,test,tools}/*/*/pnpm-lock.yaml