Tunning Karnel lxc ubuntu 18.04

 # available limit

origrata@ubuntu:~$ ulimit -n
1024

# To increase the available limit to say 65535
origrata@ubuntu:~$ sudo nano /etc/sysctl.conf

# add the following line to it
fs.file-max = 65535

sudo vim /etc/security/limits.conf

# add following lines to it
* soft     nproc          65535    
* hard     nproc          65535   
* soft     nofile         65535   
* hard     nofile         65535
root soft     nproc          65535    
root hard     nproc          65535   
root soft     nofile         65535   
root hard     nofile         65535

# edit the following file
origrata@ubuntu:~$ sudo nano /etc/pam.d/common-session

# add this line to it
session required pam_limits.so

# run this to refresh with new config
origrata@ubuntu:~$ sudo sysctl -p

# logout and login and try the following command
origrata@ubuntu:~$ ulimit -n
65535
restart setelah config

Post a Comment

Lebih baru Lebih lama
Tempat Iklas Dinamis
Tempat Iklas Dinamis