... Playbook #3

Too many processes running on the host

When hosts run excessive processes, performance and resources may degrade. This playbook aids in identifying processes, analyzing their resource consumption, and detecting any misbehaving processes, such as forkbombs, which could lead to system limits being reached.

# SSH to the host mentioned in service IP argument echo "[1/4]Identify the number of Processess Allowed"
                              
ulimit -u
                              
                            
echo "[2/4]ICheck the amount of used memory by each process"
                              
ps aux --sort=-%mem | head
                              
                            
echo "[3/4]ICount the number of process running on the host"
                              
ps -e | wc -l
                              
                            
echo "[4/4]Check for fork bombs"
                              
pstree -p