ps axuw| grep mysql
indicates only MySQL process, but if I run htop I can see 10 rows each one of them with a separate PID. So I wonder if they are threads or proce
There is few configuration settings in /etc/mysql/my.cnf
that would impact memory usage.
Following settings:
key_buffer = 8M
max_connections = 30
query_cache_size = 8M
query_cache_limit = 512K
thread_stack = 128K
should drastically reduce the memory usage of mysql.
read more here: http://opensourcehacker.com/2011/03/31/reducing-mysql-memory-usage-on-ubuntu-debian-linux/