MySQL Memory Usage

felixtraxlerHOBBY

a year 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

0 Replies

felixtraxlerHOBBY

a year ago

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


a year 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


felixtraxlerHOBBY

a year ago

Thanks for the info!



a year ago

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


a year ago

@DaFelix


a year ago

but it wont do any miracles lol


a year ago

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


a year ago

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


chaudharysamirzafarHOBBY

2 months ago

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


chaudharysamirzafarHOBBY

2 months ago

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


2 months 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


2 months ago

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


chaudharysamirzafarHOBBY

2 months ago

Hmm I think it's better to use MariaDB then


2 months ago

!s


Status changed to Solved brody 2 months ago


MySQL Memory Usage - Railway Help Station