Page 1 of 1

Number File Descriptors in PHP 5.04 Build?

Posted: Thu Jan 04, 2007 12:44 am
by jas8522
Hello,

I am another with lots of domains on the box and maxing out my file descriptors. I've followed the directions here:

http://kb.swsoft.com/article_41_260_en.html

for each of those packages (although newer versions) and been able to successfully recompile everything except PHP. I'm hoping to find out if you (scott) happen to remember or have wrote down somewhere if PHP 5.04 for RHEL3 was compiled with higher than 1024 file descriptors?

I'll be looking for a src.rpm in the meantime to recompile :P

Thanks

Jordan

Posted: Thu Jan 04, 2007 3:36 pm
by scott
Its set to 4096 in my build environment. Keep in mind youve also got to recompile imap, openssl, and apache to do it.

Posted: Fri Jan 05, 2007 3:11 am
by jas8522
Thanks Scott... just making sure. I have rebuilt those SRPM's already and installed them, although I had not set the value via ulimit -n

Do you know if I must have ulimit -n set correctly during the build, or if simply changing the values in the files mentioned at http://kb.swsoft.com/article_41_260_en.html is enough?

Thanks,

Jordan

Posted: Fri Jan 05, 2007 1:10 pm
by scott
Youve got to modify FD_SETSIZE in the appropriate types files. Then recompile the binaries in the right order, openssl, apache, imap, and then php.

Posted: Fri Jan 05, 2007 8:07 pm
by jas8522
Are you aware of any way to check and see if the compiled version is using the full number of descriptors? I changed the values in all those files and rebuild them in exactly that order, but I'm still getting "REQUIRE(maxfd <= (int)1024) failed" in the error log.

Any suggestions?

Thanks,

Jordan

Posted: Fri Jan 05, 2007 10:47 pm
by scott
Other than by looking at the source code, no.

Posted: Sat Feb 24, 2007 11:27 pm
by art
jas8522 wrote:Are you aware of any way to check and see if the compiled version is using the full number of descriptors? I changed the values in all those files and rebuild them in exactly that order, but I'm still getting "REQUIRE(maxfd <= (int)1024) failed" in the error log.

Any suggestions?

Thanks,

Jordan
This is bind-utils package. It needs to be rebuilt. I found about it in the plesk knowledgebase let me know if it helps