Answer the question
In order to leave comments, you need to log in
Why is MySQL taking up little memory?
We rent VPS on Red Hat 4.4.6-4. MySQL at its peak eats up 190MB of RAM.
The tariff plan was changed, now it is 2 GB (so the memory occupied by php at the peak can be up to 2000 MB, i.e. the tariff seems to be honest), the memory occupied by the muscle has not changed.
I look at the RAM of processes with the command
ps axo rss,comm,pid \
| awk '{ proc_list[$2]++; proc_list[$2 "," 1] += $1; } \
END { for (proc in proc_list) { printf("%d\t%s\n", \
proc_list[proc "," 1],proc); }}' | sort -n | tail -n 10 | sort -rn \
| awk '{$1/=1024;printf "%.0fMB\t",$1}{print $2}'
Answer the question
In order to leave comments, you need to log in
dev.mysql.com/doc/refman/5.6/en/innodb-parameters....
try setting it to 1000M and look for more mysql optimization tips for innodb
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question