linux systemd increase nofile openfile limits
I ran a golang daemon , with systemd , got error: too many openfile limits.
by run cat /proc/[number]/limits, you can see your current process open file limits. seems it just 1024
I got search for answer, it seems systemd not respect /etc/security/limit.conf
You should also adjust default systemd conf
By edit /etc/systemd/system.conf and /etc/systemd/user.conf
increase these two conf and systemctl daemon-reload && systemctl restart yourservice
Post: 2019.04.18 09:04