Hi,
I have installed Alpine Linux to my Proxmox dev environment in a LXC container and am having an issue raising the file limits.
I have it installed on a reasonably busy haproxy server so I need to increase the file limits but I get the following error from this command:
ulimit -n 90000
ash: error setting limit: Operation not permitted
===
## Increase system file descriptor limit
fs.file-max = 65535
Am I doing something wrong? Any help appreciated!
David
Hi David,
This is an LXC limitation.
Given you have the prerequisite LXC >=2.19, try this: `lxc config set containername limits.kernel.nofile 1024`
-----
Sincerely / Med vennlig hilsen,
Daniel Isaksen <d@duniel.no> (https://duniel.no)
‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
On Monday, November 26, 2018 9:53 PM, David Compton <d140frv@hotmail.co.uk> wrote:
> Hi,> > I have installed Alpine Linux to my Proxmox dev environment in a LXC container and am having an issue raising the file limits.> > I have it installed on a reasonably busy haproxy server so I need to increase the file limits but I get the following error from this command:> > ulimit -n 90000> ash: error setting limit: Operation not permitted> > ===> > ## Increase system file descriptor limit> fs.file-max = 65535> > Am I doing something wrong? Any help appreciated!> > David
Hi Daniel,
I can't believe I didn't think to look there first! I amended the lxc config file with:
lxc.prlimit.nofile: 30000
which is more than enough. Thank you for the fast reply. I'm loving Alpine so far, the boot times are unreal, I can see why it's so popular.
David
________________________________
From: Daniel Isaksen <d@duniel.no>
Sent: 26 November 2018 21:11
To: David Compton
Cc: alpine-user@lists.alpinelinux.org
Subject: Re: [alpine-user] Ulimit
Hi David,
This is an LXC limitation.
Given you have the prerequisite LXC >=2.19, try this: lxc config set containername limits.kernel.nofile 1024
-----
Sincerely / Med vennlig hilsen,
Daniel Isaksen <d@duniel.no> (https://duniel.no)
‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
On Monday, November 26, 2018 9:53 PM, David Compton <d140frv@hotmail.co.uk> wrote:
Hi,
I have installed Alpine Linux to my Proxmox dev environment in a LXC container and am having an issue raising the file limits.
I have it installed on a reasonably busy haproxy server so I need to increase the file limits but I get the following error from this command:
ulimit -n 90000
ash: error setting limit: Operation not permitted
===
## Increase system file descriptor limit
fs.file-max = 65535
Am I doing something wrong? Any help appreciated!
David