Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Is it common to have about a dozen identical mysql processes running? It is using a lot of memory, and was just curious if this was a normal amount or not. Thank you.

htop crop

share|improve this question
add comment

2 Answers

up vote 4 down vote accepted

Those are threads, not processes and yes, it's perfectly normal for MySQL to have many threads running. The memory listed is the total for all of them. You will most likely find that if you added them all up, they would come to more memory than you actually have.

If you hit F5 in htop you will see that they all have a single parent. You will also see that there is only one mysqld process in top and ps -ef. You can see all the threads with ps -eLf.

share|improve this answer
    
Thank you very much! I am pretty new to all this so that info helps me out quite a bit. –  Errol Fitzgerald Mar 29 '12 at 16:36
add comment

The threads you are seeing actually give away something inherant about the mysqld process.

  • Source-compiled versions of mysqld generate visible processes
  • RPM-based installations of mysqld only show one thread in the process list

As expressed by Ladadadada, it is normal and you have nothing to worry about.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.