Initializing JS/TS librarys spin endless. Logs says out of memory. How can I increase it? #2113
-
|
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.
Replies: 2 comments 3 replies
-
|
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_sizeinNODE_OPTIONS. For example:The default is 2048.