A process has been running for weeks and you need to know which config file and environment it started with.
BeginnerTroubleshootingProcesses, memory and OOM
Answer
Likely causes → Config may have changed on disk since start; you need the process's own view.
Diagnose →
tr '\0' ' ' < /proc/<PID>/cmdline; echo
sudo tr '\0' '\n' < /proc/<PID>/environ
sudo ls -l /proc/<PID>/cwd /proc/<PID>/exe
sudo ls -l /proc/<PID>/fd | grep -E '\.conf|\.yml'
Fix → Compare with the current files; if they differ, plan a reload/restart.
Prevent → Reload services after config changes via config management handlers.
More on Processes, memory and OOM
A Java service disappears without an error in its own log. `dmesg` shows `Out of memory: Killed process 4121 (java) total-vm:... anon-rss:...`.BeginnerA service gets killed with `Memory cgroup out of memory: Killed process ...` but the host has 20 GB free.Intermediate`ps` shows dozens of processes in state `Z` with `<defunct>`.BeginnerZombie count keeps climbing into the thousands and new processes fail with `fork: Resource temporarily unavailable`.AdvancedAn app crashes under load with `java.io.IOException: Too many open files` (or `EMFILE`).BeginnerYou raised `nofile` in `/etc/security/limits.conf` to 65536, but the service still shows `Max open files 1024`.Intermediate