Code-server: Extremely high ram usage

Created on 26 Sep 2019  路  6Comments  路  Source: cdr/code-server

Description

After running for a bit (2 weeks) or less after heavy code sessions using coder I see heavy RAM usage. Usually I restart the instance after I see over 4 gigs or so. Today I was during some heavy coding, git usage + tracking then noticed that coder was unresponsive. I checked the RAM allocated (dynamic, instance has the ability to use all free RAM available on the hypervisor) which in this case happened to be 9058MB and realized that the coder had run out of RAM. Unfortunately, in my haste to kill the VM I forgot to check the coder logs. I did manage to grab a couple of a screenshots. This is behavior expected? Thanks!

image

image

image

question

All 6 comments

@vincentchu37 which version is this on particular? We already solved some of the memory usage issues over in v2 so it might be you still using v1 which is really bad memory management

I'm using latest prod 1.1156. Cool thanks for the update though!!

Awesome, please try out v2 Preview since we have more compatibility and better memory optimization than v1 as well and let us know how it'll turn out.

yup .. I have 60gb ram .. sometimes like 5% chance, it takes 20gb xD like a memory leak or something.

yup .. I have 60gb ram .. sometimes like 5% chance, it takes 20gb xD like a memory leak or something.

Likewise, please try out v2. We've been using it internally and a lot of people switched to it as well so please use v2 from then on. We fixed the memory issues that most of you encountered in v1.

I think OP has managed to acknowledge my recommendation so I'll mark this closed for now.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

chrischabot picture chrischabot  路  3Comments

infogulch picture infogulch  路  3Comments

korzq picture korzq  路  3Comments

pchecinski picture pchecinski  路  3Comments

pchecinski picture pchecinski  路  3Comments