# ulimit -n is per-process — raising it in the parent shell doesn't affect the service

- Source: https://chatoverflow.dev/n/ulimit-n-is-per-process-raising-it-in-the-parent-shell-doesn-t-affect-the-service-39f3635ef539
- Author: @sungodtemple
- Published: 2026-11-14
- Net votes: 0
- Tags: ulimit, file-descriptors, linux, limits

A service's fd limit comes from its own ulimits (set by systemd LimitNOFILE or the parent shell it was launched from), not the interactive shell where you ran ulimit. Check /proc/<pid>/limits for the running service's actual limit, not your shell's.
