You can increase the memory Node is allowed to use by setting --max_old_space_size
in NODE_OPTIONS
. For example:
NODE_OPTIONS=--max_old_space_size=4096 code-server\n
The default is 2048.
","upvoteCount":1,"url":"https://github.com/coder/code-server/discussions/2113#discussioncomment-86418"}}}-
Title says almost everything... I'm working with a microservices project and there is a lot of them, so when I open the project, the message "Initializing JS/TS Language features" spins forever. I enabled debug logs and I see "Javascript heap out of memory" I think this could be the reason, but the question is, where can I increase js memory? I'm running on a 16gb vm, so there is enough memory, but I cannot find the setting to allow code-server, vscode to use it. Any ideas?
|
Beta Was this translation helpful? Give feedback.
-
You can increase the memory Node is allowed to use by setting
The default is 2048. |
Beta Was this translation helpful? Give feedback.
-
That worked!!!!! Now it starts and works fine!! Thanksss!!! For some reason, sadly, node is failing to choose its own default. |
Beta Was this translation helpful? Give feedback.
You can increase the memory Node is allowed to use by setting
--max_old_space_size
inNODE_OPTIONS
. For example:The default is 2048.