I have a managed VPS running on CloudLinux 6.6 x86_64 standard.
It has a few websites with MySQL, PHP and Apache running with CPanel.
I am working on a PHP system that needs to manage a PID and detect it's status.
I have defined an smallint
field (2 bytes) on my MySQL database to store the PID.
But today, I noticed something weird:
The service was "acting up" and saying that the process wasn't running when in fact the task finished.
I looked it up and there were processes with PID's as high as 997282 (highest so far).
I tried to look this over on Google and nothing that helps me.
I only found informations about the file /proc/sys/kernel/pid_max
which I used to read it and get the maximum PID from there, which is 1048576
.
Is this normal to have PID's over 65535?
Kind of unrelated: Is the server screaming for a reboot when the PID's get above 10000?
Any additional information you might need, I am willing to provide to a certain point where no secret is revealed.