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.

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:

https://bugs.php.net/bug.php?id=37025

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
add comment

Your Answer

 
discard

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

Browse other questions tagged or ask your own question.