Too many open files
Pete Houston
ph1 at openstrike.co.uk
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 openstrike.co.uk> 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
1772
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.
Pete
--
Openstrike - improving business through open source
http://www.openstrike.co.uk/ 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: <http://lists.amavis.org/pipermail/amavis-users/attachments/20151214/f6ff7614/attachment.sig>
More information about the amavis-users
mailing list