Operating System - HP-UX
1837208 Members
2461 Online
110115 Solutions
New Discussion

more than file descriptors

 
Tonatiuh
Super Advisor

more than file descriptors

HP-UX 11.11

Because of a problem of out of file descriptors I modified the MAXFILES (from 60 to 2048) and MAXFILES_LIM (to 4096), rebuilded the kernel.

This problem is reported by Oracle 9iR1 Application Server.

But the problem still exists. Is there any other kernel parameter that I should modify according to this two parameters? Is there any formula that I should apply to other parameter?

3 REPLIES 3
A. Clay Stephenson
Acclaimed Contributor

Re: more than file descriptors

The other related value is nfile -- the system-wide limit of open files.
If it ain't broke, I can fix that.
Tonatiuh
Super Advisor

Re: more than file descriptors

# kmtune -q nfile
Parameter Current Dyn Planned Module Version
===============================================================================
nfile 7649 - (16*(NPROC+16+MAXUSERS)/10+32+2*(NPTY+NSTRPTY+NSTRTEL))

AS far as I see MAXFILES and MAXFILES_LIM are not involved in the formula to calculate NFILE.

Any suggestion?
A. Clay Stephenson
Acclaimed Contributor

Re: more than file descriptors

An open() system call can fail because of not enough file descriptors for 1 of 2 reasons: 1) The per process limit has been reached; this sets errno = EMFILE (24) 2) the system-wide limit has been reached; this sets errno = ENFILE (23).

If the system file table overflows you will see messages logged in syslog as well as an application error; if the per-process limit is reached, you will only get application errors.

Man 2 open for details.
If it ain't broke, I can fix that.