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

Extension consumes memory more then expected on code-server instance #531

Closed
LittleSound opened this issue Sep 25, 2021 · 3 comments
Closed
Labels
question Further information is requested

Comments

@LittleSound
Copy link
Member

description

I was using the code-server instance on a virtual machine running on cloud, it caused out of memory issue two times in the past 3 days, during this time, code-server host will never be reached again until the memory free out. I was experiencing out of memory today, it shows loads of memory consumption after a immediate reboot, I don't know why this was happening, is there any memory leak in Volar extension? Or other process caused this problem?

htop screenshot

image

environment setup

code-server

version: 1.60.0
commit: b37ff28a0a582aee84a8f961755d0cb40a4081db
date: 2021-09-16T20:08:09Z (a week ago)
browser: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.61 Safari/537.36

volar version

version: v0.27.24
id: johnsoncodehk.volar

server specs

OS: CentOS Linux 8 x86_64
Host: KVM RHEL 7.6.0 PC (i440FX + PIIX, 1996)
Kernel: 5.14.7-1.el8.elrepo.x86_64
Shell: zsh 5.5.1
Terminal: /dev/pts/0
CPU: AMD EPYC-Milan (2) @ 1.996GHz
Memory: 1708MiB / 3929MiB

@johnsoncodehk
Copy link
Member

How many .ts, .vue, tsconfig.json files in your project? And please try config "volar.lowPowerMode": true and check for memory usage again.

@LittleSound
Copy link
Member Author

The usage dropped significantly, thanks for this!

@johnsoncodehk johnsoncodehk added the question Further information is requested label Sep 27, 2021
@johnsoncodehk
Copy link
Member

johnsoncodehk commented Oct 1, 2021

Also make sure Use Take Over Mode instead of TS Plugin if you have using TS plugin.

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

No branches or pull requests

2 participants