Springboot server, memory hitting over 600 MB?
m1rza-s
PROOP

a year ago

However, running the exact same server locally barely touches 120 MB - what is going on?

12 Replies

m1rza-s
PROOP

a year ago

f9ec452d-2faf-4231-b569-992e4b5ae37c


m1rza-s
PROOP

a year ago

I understand that there'll be some overhead from running in Docker - but by a factor of 6? <:doubt:1121812954808066048>


a year ago

are you also running a dockerized container locally?


m1rza-s
PROOP

a year ago

nah


a year ago

then that's not a fair comparison lol, but yeah the mem usage is all on you and your dockerfile and if you're using nixpacks to generate a dockerfile you can try creating your own to see if it reduces usage


a year ago

railway just runs the dockerfile, Im 100% sure this isn't railway's fault


m1rza-s
PROOP

a year ago

Aight, that's fair. i'll check it out. I was just surprised to see a sixfold increase!


chaudharysamirzafar
HOBBY

a year ago

@thepitchwise did you manage to come up with a solution?


chaudharysamirzafar
HOBBY

a year ago

My app uses ~400mb at idle….


m1rza-s
PROOP

a year ago

Nah, I've just come to accept it


chaudharysamirzafar
HOBBY

a year ago

You use a docker file? You can set max heap size in there. I’ve set it to 256MB


chaudharysamirzafar
HOBBY

a year ago

But spring is just so heavy anyway - quite terrible


Loading...