On Mon, Dec 14, 2015 at 11:51:24AM -0500, Alex wrote:
> On Mon, Dec 14, 2015 at 11:39 AM, Pete Houston <
p...@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