This actually requires https://superuser.com/questions/1200539/cannot-increase-open-file-limit-past-4096-ubuntu/1200818#_=_
Modify **/etc/systemd/user.conf **and /etc/systemd/system.conf with the following line (this takes care of graphical login):
DefaultLimitNOFILE=65535
echo '* hard nofile unlimited' | sudo tee --append /etc/security/limits.conf echo '* soft nofile unlimited' | sudo tee --append /etc/security/limits.conf echo '* soft nproc 32768' | sudo tee --append /etc/security/limits.conf echo '* hard nproc 32768' | sudo tee --append /etc/security/limits.conf echo '* soft memlock unlimited' | sudo tee --append /etc/security/limits.conf echo '* hard memlock unlimited' | sudo tee --append /etc/security/limits.conf
echo '* soft nproc 32768' | sudo tee --append /etc/security/limits.d/90-nproc.conf echo '* hard nproc 32768' | sudo tee --append /etc/security/limits.d/90-nproc.conf
For stuff running with
systemd
, the settings need to be changed in/etc/systemd/system.conf
//etc/systemd/user.conf
:https://unix.stackexchange.com/questions/366352/etc-security-limits-conf-not-applied