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

Views: 126

Edit blog

Follow me: @twitter @github
Scan QR code and Donate me via alipay:
donate me via alipay
Donate me Bitcoin:136MYemy5QmmBPLBLr1GHZfkES7CsoG4Qh
Powered by josense, Last updated: 2019-04-15 09:45 RSS