Reduce ram?
would be what is the smallest the most basic application can consume of ram on railway?
17 Replies
Project ID:
N/A
N/A
don’t know off the top of my head, but you could check yourself by creating an extremely simple dockerfile with no other code
well I did a test where I basically removed everything from imports and just have a simple bun serve with hello world. Originally the ram usage from at 61-106 but with the removal of all the imports weirdly the ram went up?
run bun in smol mode
whats smol mode 👀
the docs could explain it better than me
ah
but it says at the cost of performance lmao
if you want the ram as low as possible there’s gonna be a performance hit
it’s not going to be noticeable likely
still faster than node more than likely
it did drop though below 63
without all the imports
to like 43 mb
but is 43 MB normal for a basice serve hello world app?
sounds about right, now try smol mode
going to try it
dang it goes down to 6MB
wild
idk if using smol would be good tho for a high throughput server
try it out and find out
will do thanks for the help