a year ago
I am trying to run my NestJS API, but am having issues with the deploy stage. The build stage works, but when it gets to deploy, the log says that the heap is running out of memory. Any ideas?
ⓘ Deployment information is only viewable by Project members and Railway admins.
6 Replies
a year ago
You are on the trial plan and only have access to 512MB of memory, Nest may be trying to allocate more memory than it has right at the start, Upgrade to Hobby and let me know if you continue to face issues.
Status changed to Solved railway[bot] • about 1 year ago
a year ago
Alright, I upgraded to hobby, but it looks like it is still getting this error:
<--- JS stacktrace --->
FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
1: 0xab4728 node::Abort() [/nix/store/5l687mklyr9rhhbvvpvi93zv0zbbi4vg-nodejs-18.18.2/bin/node]
a year ago
Interesting, I did not consider that. Let me try that
a year ago
Alright, that fixed the heap issue. Thank you!