How can I set the max number of MySQL processes or threads?

后端 未结 4 1994
失恋的感觉
失恋的感觉 2021-02-03 22:48

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

4条回答
  •  花落未央
    2021-02-03 23:31

    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/

提交回复
热议问题