Reduce memory usage on OSX

After installing mysql using brew, we noticed the memory usage was insanely high for what we needed (just a local development serve).

It was showing in Activity Monitor at almost 500MB memory usage for running just 3 or 4 small databases on one of our developers machines.

Apparently when you install via Homebrew, the configuration defaults to something that would be more appropriate for a production server than a developer’s local machine.

The solution was to just override some of the my.cnf defaults as per Robby’s explanation here:

About Phil Smithson

Ultrarunner & CTO. Passions include Mobile app development, Scrum, Kanban, Wordpress and Symfony.

Leave a Reply

Your email address will not be published. Required fields are marked *