MySQL Memory Usage
felixtraxler
HOBBYOP

2 years ago

Hey there, we just migrated to Railway and in the last 24h I saw that the memory usage is consistently at 500mb, without much traffic.

Is that normal? / Do we have to expect at least 5$ sub + 10$ memory usage each month?

Solved

15 Replies

felixtraxler
HOBBYOP

2 years ago

67b87d30-5a04-4dbe-884b-731cf1b4167c


2 years ago

That is unfortunately completely normal memory usage for a MySQL deployment, MySQL is a memory hog, I'd recommend Brody's [MariaDB Template]() though, it's basically a drop in replacement for MySQL and should be a lot more memory effecient


felixtraxler
HOBBYOP

2 years ago

Thanks for the info!



2 years ago

you can also try adding that parameter to the end of the start command as stated by brody


2 years ago

@DaFelix


2 years ago

but it wont do any miracles lol


2 years ago

friendship ended with medim, now fragly and grid are my best friends


2 years ago

i can confirm that swapping in mariadb saves about 100-150mb of memory overhead


chaudharysamirzafar
HOBBY

a year ago

What if we turn on the serverless option? @Fragly ?


chaudharysamirzafar
HOBBY

a year ago

Technically it should help if there is little to no traffic right?


a year ago

oh yea for sure, that is definitely an option
heads up though, as far as I know the private network doesn't pair well with serverless yet


a year ago

it can, your application just needs to have seamless reconnect retries, but easier said than done depending on the application


chaudharysamirzafar
HOBBY

a year ago

Hmm I think it's better to use MariaDB then


a year ago

!s


Status changed to Solved brody 11 months ago


Loading...