php中filepointer的最大限制已经达到并且不可更改

我有一个服务器安装了当前的5.3.x版本。 由于我们使用套接字在php中运行一个非常简单的小型服务器,它使用套接字连接到很多客户端,因此我们需要提高打开的文件限制

已经在运行服务器的用户的服务器上完成

#ulimit -a core file size (blocks, -c) 0 data seg size (kbytes, -d) unlimited scheduling priority (-e) 0 file size (blocks, -f) unlimited pending signals (-i) 29879 max locked memory (kbytes, -l) 64 max memory size (kbytes, -m) unlimited open files (-n) 8192 pipe size (512 bytes, -p) 8 POSIX message queues (bytes, -q) 819200 real-time priority (-r) 0 stack size (kbytes, -s) 8192 cpu time (seconds, -t) unlimited max user processes (-u) 29879 virtual memory (kbytes, -v) unlimited file locks (-x) unlimited 

和我们编译php

 --enable-fd-setsize=8192 

我们仍然得到

 [19-Nov-2012 09:24:23 Europe/Berlin] PHP Warning: socket_select(): You MUST recompile PHP with a larger value of FD_SETSIZE. It is set to 1024, but you have descriptors numbered at least as high as 1024. --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. 

偶尔在我们的日志中。 任何人都知道谁来configurationUNIX服务器和PHP正确的工作?

我发现了一个错误,但是这与2006年有关,标记为“不是bug”

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

有关如何提高系统限制的信息,请参阅实用的最大打开文件描述符(ulimit -n) 。 如果你的系统限制低于PHP的编译自我限制,那么这可能会导致这个问题。