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: 1555549449

Views: 520

Follow me: @twitter @github
Scan QR code and Donate me via alipay:
donate me via alipay
Donate me Bitcoin:136MYemy5QmmBPLBLr1GHZfkES7CsoG4Qh
Powered by GoSense RSS