#Reduce ram?

25 messages · Page 1 of 1 (latest)

hard monolith
#

would be what is the smallest the most basic application can consume of ram on railway?

limpid nicheBOT
#

Project ID: N/A

hard monolith
#

N/A

wet yoke
#

don’t know off the top of my head, but you could check yourself by creating an extremely simple dockerfile with no other code

hard monolith
#

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?

bright garnet
#

run bun in smol mode

hard monolith
#

whats smol mode 👀

bright garnet
#

the docs could explain it better than me

hard monolith
#

ah

#

but it says at the cost of performance lmao

wet yoke
#

if you want the ram as low as possible there’s gonna be a performance hit

#

it’s not going to be noticeable likely

hard monolith
bright garnet
#

still faster than node more than likely

hard monolith
#

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?

bright garnet
#

sounds about right, now try smol mode

hard monolith
#

going to try it

#

dang it goes down to 6MB

#

wild

#

idk if using smol would be good tho for a high throughput server

bright garnet
#

try it out and find out