Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to serve with a PHP more than 1024 Clients! I dont have a apache! When I run the script I come in to a issue once I have more than 1023 Clients connected!

I have exactly this issue:

I did whats in the comments

and know i get this issue:

Warning: socket_select(): You MUST recompile PHP with a larger value of FD_SETSIZE. It is set to 4096, but you have descriptors numbered at least as high as 1023. -- enable-fd-setsize=2048 is recommended, but you may want to set it to equal the maximum number of open files supported by your system, in order to avoid seeing this error again at a later date.

That is weird!

Also I all my ulimits are very high and also the filemax in sysctl.conf is up to 900000

Anyone who could help?

share|improve this question
Did you try recompiling PHP as that bug report suggested? – Mike Sherrill 'Cat Recall' Mar 28 '13 at 16:10
Yes! and when I write php -i I can see that he took the configuration! – Michael12041 Mar 28 '13 at 16:11
Also tried different PHP Versions – Michael12041 Mar 28 '13 at 16:14
Memory or file descriptor leak? (Monitor with lsof.) – Mike Sherrill 'Cat Recall' Mar 28 '13 at 16:27
nothing found....maybe it is because it is a websocket connection and the implementation of those in PHP is a bit weak – Michael12041 Mar 28 '13 at 17:38

Your Answer


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

Browse other questions tagged or ask your own question.