-
Notifications
You must be signed in to change notification settings - Fork 118
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
Allocation failed - JavaScript heap out of memory #71
Comments
@MuhammadSawalhy Just ran into this. It turns out the Node runtime is running out of memory (I think the default is 500mb or something). Depending on how much memory you have on your machine, you can increase this by setting environment variables. For a 4GB heap you can do this for example: NODE_OPTIONS=--max-old-space-size=4096 svg-term --cast=236096 --out examples/parrot.svg --window I can see that you were already close to the limit of your mem utilisation. The next time you run a conversion you may want to close all other windows and increase the size of your swap. Good luck. |
Having memory issues doesn't always mean "lacking memory".
I'll try that on our headless server farm, thanks. |
This is the purpose of the issue 😅 |
Indeed, but as expected it was not understood in proper way. Hence my addition ;) |
Of course you're right. I was merely trying to offer pointers to individuals who arrived here by googling an error, and just want to get the job done without necessarily having the time to address the underlying issues. |
We tried converting a 1:30 asciinema with SVG term giving more than 4gb of ram available. It just killed the machine up to no responsiveness and needed reset. The difference is so huge and the answer was so out of the scope that I first thought your answer was a joke. Definitely thought it was when I read the last sentence. If it was not, then sorry, I never meant to talk about optimization seriously on a node-js software. |
see socketio/socket.io#3477 (comment) |
Reproduce
Description
After running this command, my computer was noticeably slow, my mouse was not reponding sometimes. I quickly tried to run
htop
command in Linux:After waiting a while, Nodejs logged these lines:
The text was updated successfully, but these errors were encountered: