Too many open files

Pete Houston ph1 at
Mon Dec 14 18:22:13 CET 2015

On Mon, Dec 14, 2015 at 11:51:24AM -0500, Alex wrote:
> On Mon, Dec 14, 2015 at 11:39 AM, Pete Houston <ph1 at> wrote:
> > See the man page for limits.conf for setting persistent limits.
> Pete, thanks very much. Any idea why the system already appears to
> have more than the maximum number of open files (1024) according to
> lsof for the amavis user?

In your previous message you determined the number like this:

	# lsof |grep amavis|wc -l

which is too crude - it can include files opened by other users which
have "amavis" in the path, for example.

> Also, what is the difference between setting it in limits.conf and
> setting it with sysctl?
> sysctl says the number of open files is much larger:
> # sysctl fs.file-max
> fs.file-max = 3288819
> Is that for the whole system, and ulimit is per-process? Or per-user?

sysctl fs.file-max is the maximum across the whole system - you shouldn't
need to touch that. ulimit sets values in the current shell and processes
forked from it.

Openstrike - improving business through open source or call 01722 770036
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <>

More information about the amavis-users mailing list