Mysql Threads Clarification
I am starting experiencing with an Ubuntu Apache+Mysql server
I have seen that Apache starts lots of processes (one for each connection request) which I can monitor using ps aux while mysql has only one process and a number of threads which I can monitor using ps -eLf
Why mysql has only one process? Right now I have only one user for the database. Having multiple users connecting to the database would result in having multiple process? (thus reserving more cpu and ram for the db)
thank you
2 Replies
MySQL does have some memory allocations that get allocated to each connection for it to use, but not all of them are like this - some are global. I am not sure which ones are and are not. I know that the MySQL tuning primer (found here: