Unnecessarily high memory usage for basic application
marzahn-dev
PROOP
2 years ago
Hey there, I have a simple bun elysia application that is taking up more than 300MB even though the same application is using less than 100MB on fly.io. Any idea why and how I can fix it?
5 Replies
2 years ago
Try compiling before running it.
https://bun.sh/docs/bundler/executables#deploying-to-production
Status changed to Solved Railway • almost 2 years ago
marzahn-dev
PROOP
2 years ago
I just tried, my memory usage has indeed reduced from 330MB to 46MB on railway. Thanks!
iamkoby
PRO
2 years ago
how do you compile?
2 years ago
Please see Bun's documentation -
https://bun.sh/docs/bundler/executables#deploying-to-production
iamkoby
PRO
2 years ago
Thanks