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 processes that for some reason I cannot see using ps.

Would it make any sense to try to limit them to two on my development machine, where I don't need concurrent access of many clients.

BTW Running on Ubuntu 8.10

解决方案

You can set the max number of threads in your my.ini like this:

max_connections=2

However you might also want to set this:

thread_cache_size=1

The thread cache controls how many it keeps open even when nothing is happening.

Logo

魔乐社区(Modelers.cn) 是一个中立、公益的人工智能社区,提供人工智能工具、模型、数据的托管、展示与应用协同服务,为人工智能开发及爱好者搭建开放的学习交流平台。社区通过理事会方式运作,由全产业链共同建设、共同运营、共同享有,推动国产AI生态繁荣发展。

更多推荐