set worker_processes to _SERVER["NUMBER_OF_PROCESSORS"]

Joshua Zhu zhuzhaoyuan at
Sat Sep 19 07:21:05 MSD 2009


On Sat, Sep 19, 2009 at 3:01 AM, Ziyad Saeed <myschizobuddy at> wrote:
> can i set worker_processes to _SERVER["NUMBER_OF_PROCESSORS"]
> looking in phpinfo there is a server variable that mentions the number of
> processors

No, I don't think so. 'worker_processes' is set only during the
initialization phase. It expects a number rather than a variable.


Joshua Zhu

More information about the nginx mailing list