Number File Descriptors in PHP 5.04 Build?

Support/Development for PHP
jas8522
Forum User
Forum User
Posts: 52
Joined: Mon Jan 09, 2006 4:02 pm

Number File Descriptors in PHP 5.04 Build?

Unread post 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
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8355
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

Unread post 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.
jas8522
Forum User
Forum User
Posts: 52
Joined: Mon Jan 09, 2006 4:02 pm

Unread post 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
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8355
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

Unread post 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.
jas8522
Forum User
Forum User
Posts: 52
Joined: Mon Jan 09, 2006 4:02 pm

Unread post 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
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8355
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

Unread post by scott »

Other than by looking at the source code, no.
art
Forum User
Forum User
Posts: 18
Joined: Fri Dec 15, 2006 12:43 am

Unread post 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
Post Reply