R
Railway11mo ago
Kurdiez

Deploy Logs show out of heap memory

My server runs fine locally, but only in Railway it fails to deploy and shows the following attached messages. The build phase works fine.
Solution:
Ok, now that's working great after getting 32GB
Jump to solution
31 Replies
Percy
Percy11mo ago
Project ID: 00a98625-f237-4950-bfaa-f6b77695df8c
Kurdiez
Kurdiez11mo ago
00a98625-f237-4950-bfaa-f6b77695df8c I made sure the node version is the same as my local with environment variable NIXPACKS_NODE_VERSION which is version 18
Brody
Brody11mo ago
I'm seeing nodejs-20.6.1 in multiple places in those logs
Kurdiez
Kurdiez11mo ago
Oh sorry that is an old log. Let me get you new one with the NIXPACKS_NODE_VERSION update.
Brody
Brody11mo ago
what do your memory metrics look like
Kurdiez
Kurdiez11mo ago
Oh weird... Even though my build log says I'm using nodejs_18 at the top, my deployment log has 20 like you said.
Kurdiez
Kurdiez11mo ago
I guess docker runtime environment is Node 20?
Brody
Brody11mo ago
1.9gb image?? what do your memory metrics look like
Kurdiez
Kurdiez11mo ago
Where did you see 1.9gb image?
Brody
Brody11mo ago
your build logs
Kurdiez
Kurdiez11mo ago
Oh you mean the docker image. When I start up my server locally, it uses up about 1GB of RAM memory.
Brody
Brody11mo ago
what do your memory metrics look like on railway
Kurdiez
Kurdiez11mo ago
My server never started up properly. The out of memory message shows up immediately when yarn start is executed.
No description
Brody
Brody11mo ago
fair
Kurdiez
Kurdiez11mo ago
My guess is that the Memory metrics is the memory usage during the run time of the server?
Want results from more Discord servers?
Add your server