Show which cgroup and slice a process belongs to and its limits.
IntermediateProductionRapid-Fire Commands
Answer
cat /proc/1234/cgroup # 0::/system.slice/api.service
systemctl status 1234 # unit owning the PID
cat /sys/fs/cgroup/system.slice/api.service/{memory.max,cpu.max,pids.max}
More on Rapid-Fire Commands
Which process is listening on port 8080?BeginnerShow the top 10 memory-consuming processes.BeginnerFind files larger than 1 GiB on the root filesystem only.BeginnerShow failed systemd units.BeginnerShow the last 10 reboots and shutdowns.BeginnerShow failed SSH login attempts by source IP.Intermediate