1834788 Members
2845 Online
110070 Solutions
New Discussion

nfile almost full

 
R.L
Occasional Advisor

nfile almost full

Hi all,

What should be done if the file opened is almost 100%(nfile almost full)?

any help is appreciated.

2 REPLIES 2
RikTytgat
Honored Contributor

Re: nfile almost full

Hi,

Check whether or not you are dealing with a problem. Use lsof to locate the process/user that has many files opened.

If your system is heavily loaded and you are running with the default kernel parameters, you probably must increase the nfiles kernel parameter.

This can be done using SAM.

Since nfiles is a calculated kernel parameter, changing another parameter might be the solution 5ie increasing the maxusers parameter influences the nfiles parameter).

It depends on the functionality offered by the server. A database server requires different settings then a login server.


Hope this helpd,
Rik.

Bill Hassell
Honored Contributor

Re: nfile almost full

Almost alll computers will grow in size (more users login, more applications run at the same time, etc). Therefore, at least two parameters will need adjusting: nfile and nproc. Since each system is different, you can set these to specific values or use the maxusers kernel macro which adjusts several values at the same time. If nfile is almost full then double the value for maxusers and have SAM create a new kernel.

If nfile continues to fill, then you may have a runaway process (or processes) that will require investigating.


Bill Hassell, sysadmin