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


dev
MODERATOR

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!



medim
MODERATOR

2 years ago

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


medim
MODERATOR

2 years ago

@DaFelix


medim
MODERATOR

2 years ago

but it wont do any miracles lol


brody
EMPLOYEE

2 years ago

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


gridonyx
HOBBY

2 years ago

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


chaudharysamirzafar
HOBBY

10 months ago

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


chaudharysamirzafar
HOBBY

10 months ago

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


dev
MODERATOR

10 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


brody
EMPLOYEE

10 months ago

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


chaudharysamirzafar
HOBBY

10 months ago

Hmm I think it's better to use MariaDB then


brody
EMPLOYEE

10 months ago

!s


Status changed to Solved brody 10 months ago


Loading...