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

后端 未结 4 1988
失恋的感觉
失恋的感觉 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:40

    I was seeking for MySQL config stuff, then I saw this question.... Nothing to do with MySQL, am I right ?

    If the main objective is to see the result of a custom command, you can use "watch" with the following syntax (available on most linux systems) :

    watch "ps axuw| grep mysql"
    

    It will run the command each 2 seconds and display the output, it is a very very useful command.

    -> See the doc/man to see how it's powerful ;)

提交回复
热议问题