S Shibili K Member Aug 28, 2018 5 0 21 46 Apr 13, 2020 #1 How do I set ulimit -n more than 65536 in a lxc (centos 7 template) running on Proxmox 6.0.4 version? I can setup unto 65536 using /etc/security/limit.conf. How do I set a value upto 100000?
How do I set ulimit -n more than 65536 in a lxc (centos 7 template) running on Proxmox 6.0.4 version? I can setup unto 65536 using /etc/security/limit.conf. How do I set a value upto 100000?
fiona Proxmox Staff Member Staff member Aug 1, 2019 5,634 1,473 248 Apr 14, 2020 #2 Hi, try adding the following line to your container configuration file (in /etc/pve/lxc/<ID>.conf): Code: lxc.prlimit.nofile: 100000 Then you should be able to raise the limit within the container to 10000 as well.
Hi, try adding the following line to your container configuration file (in /etc/pve/lxc/<ID>.conf): Code: lxc.prlimit.nofile: 100000 Then you should be able to raise the limit within the container to 10000 as well.
S Shibili K Member Aug 28, 2018 5 0 21 46 Apr 14, 2020 #3 Thank you, If we add lxc.prlimit.nofile: 100000 in /etc/pve/lxc/<ID>.conf is it required lxc restart? or is it reflect without restart lxc?
Thank you, If we add lxc.prlimit.nofile: 100000 in /etc/pve/lxc/<ID>.conf is it required lxc restart? or is it reflect without restart lxc?
fiona Proxmox Staff Member Staff member Aug 1, 2019 5,634 1,473 248 Apr 15, 2020 #4 If you really don't want to restart, use Code: pstree -p $(lxc-info -Hp -n <ID>) to see the process tree of your container, use Code: prlimit -p <PID> prlimit --nofile=100000 -p <PID> to check and set the limits of the relevant process(es).
If you really don't want to restart, use Code: pstree -p $(lxc-info -Hp -n <ID>) to see the process tree of your container, use Code: prlimit -p <PID> prlimit --nofile=100000 -p <PID> to check and set the limits of the relevant process(es).