Unnecessarily high memory usage for basic application
marzahn-devPRO
a year 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
a year ago
Try compiling before running it.
https://bun.sh/docs/bundler/executables#deploying-to-production
Status changed to Solved railway[bot] • about 1 year ago
marzahn-devPRO
a year ago
I just tried, my memory usage has indeed reduced from 330MB to 46MB on railway. Thanks!
iamkobyPRO
a year ago
how do you compile?
a year ago
Please see Bun's documentation -
https://bun.sh/docs/bundler/executables#deploying-to-production
iamkobyPRO
a year ago
Thanks