How to monitor RAM for tuning pm.max_children
How to monitor RAM usage:
-
free -h:- This command shows your system's total, used, and free memory in a human-readable format.
- Key metrics:
total: Total RAM.used: RAM currently in use.free: Unused RAM.buff/cache: RAM used for file system buffers and page cache. This is good; Linux uses free RAM for this and frees it when applications need it.available: The most important metric. This estimates how much memory is available for starting new applications without swapping.
- Run it before and after: Run
free -hbefore you increasemax_childrenand then after your server has been running for a while under typical load with the new settings. Compare theavailablememory.
-
htop(recommended if installed):htop(you might need tosudo…


