Bug #8374 | mysqld_multi usage causing each pid-file to report incorrect value | ||
---|---|---|---|
Submitted: | 8 Feb 2005 20:34 | Modified: | 26 Apr 2005 15:11 |
Reporter: | Daniel Hutchison | Email Updates: | |
Status: | Not a Bug | Impact on me: | |
Category: | MySQL Server | Severity: | S3 (Non-critical) |
Version: | 4.1.8a | OS: | Linux (redhat release 8) |
Assigned to: | Jani Tolonen | CPU Architecture: | Any |
[8 Feb 2005 20:34]
Daniel Hutchison
[14 Feb 2005 17:44]
MySQL Verification Team
Hi, Please, check it with "ps axm" command.
[15 Feb 2005 1:10]
Daniel Hutchison
I see, so this pid value always reflects the last thread process spawned (out of 10 total)? and is there only supposed to be one pid-file, regardless of the # of threads? Thanks, Dan
[26 Apr 2005 15:11]
Jani Tolonen
There should be only one pid-file per process. In this regard process is one program running, independent of the connections (threads) connected to it. BTW, mysqld server sets the pid-file for itself, not mysqld_multi. Actually it is a bug in Linux that it shows several processes for the same process, there really should be just one. Depending on thread library being used, this problem may occur or not. Other UNIX systems show only one process for mysqld. Anyway, the pid-file should always contain the correct (main thread) program id, as mysqld process gets it from the system at start-up.