0 votes
1 view
in AWS by (19.2k points)

I have recently started on a PoC project wherein we are developing a small web app. The initial setup is done on a micro instance from AWS. We are on the rails+mysql stack.

After installing/running MySQL, I see that about 500+ MB RAM has been consumed already; leaving quite less for rest of the systems (micro instances have barely 620 MB RAM).

Our app is fairly simple at this stage. Can I do something to reduce the memory consumed by the MySQL server?

Appreciate the help.

1 Answer

0 votes
by (44.6k points)

Go to your MySQL config file (my.cnf) and change this setting.

key_buffer              = 8M 

max_connections         = 30 # Limit connections

query_cache_size        = 8M # If not enough, try 4M

query_cache_limit       = 512K

thread_stack            = 128K

Welcome to Intellipaat Community. Get your technical queries answered by top developers !


Categories

...