R
Railway10mo ago
Headless

Reduce ram?

would be what is the smallest the most basic application can consume of ram on railway?
17 Replies
Percy
Percy10mo ago
Project ID: N/A
Headless
HeadlessOP10mo ago
N/A
Adam
Adam10mo ago
don’t know off the top of my head, but you could check yourself by creating an extremely simple dockerfile with no other code
Headless
HeadlessOP10mo ago
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?
Headless
HeadlessOP10mo ago
No description
Brody
Brody10mo ago
run bun in smol mode
Headless
HeadlessOP10mo ago
whats smol mode 👀
Brody
Brody10mo ago
the docs could explain it better than me
Headless
HeadlessOP10mo ago
ah but it says at the cost of performance lmao
Adam
Adam10mo ago
if you want the ram as low as possible there’s gonna be a performance hit it’s not going to be noticeable likely
Headless
HeadlessOP10mo ago
No description
Brody
Brody10mo ago
still faster than node more than likely
Headless
HeadlessOP10mo ago
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?
Brody
Brody10mo ago
sounds about right, now try smol mode
Headless
HeadlessOP10mo ago
going to try it dang it goes down to 6MB wild idk if using smol would be good tho for a high throughput server
Brody
Brody10mo ago
try it out and find out
Headless
HeadlessOP10mo ago
will do thanks for the help
Want results from more Discord servers?
Add your server