Initializing JS/TS librarys spin endless. Logs says out of memory. How can I increase it? #2113
Answered
by
code-asher
diegosucaria
asked this question in
Q&A
|
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? |
Answered by
code-asher
Sep 28, 2020
Replies: 2 comments 3 replies
|
You can increase the memory Node is allowed to use by setting The default is 2048. |
2 replies
Answer selected by
code-asher
|
That worked!!!!! Now it starts and works fine!! Thanksss!!! For some reason, sadly, node is failing to choose its own default. |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

You can increase the memory Node is allowed to use by setting
--max_old_space_sizeinNODE_OPTIONS. For example:The default is 2048.