Works with the AI Agents you already use
PHP-FPM Pool Sizing Calculator
by Saizul Amin
Size php-fpm pools to the server's RAM - measure per-child memory with ps, compute pm.max_children with a safety percentile and a reserve for MySQL/Redis/the OS, pick pm dynamic/static/ondemand and spare-server values, and flag an existing pool that can overcommit memory and trigger the OOM killer.
$3
PHP-FPM Pool Sizing Calculator
Example session with this skill installed
My 4 GB server runs WordPress with PHP-FPM. Here is the memory use of the PHP children. What should pm.max_children and the other settings be?
- Read your context and instructions
- Compiled the php-fpm pool sizing
I ran the bundled script from the php-fpm-pool-sizing skill and reviewed its findings.
Demo data: this is the real, unedited output of the skill's script on the test fixture that ships with its source repo.
Script output
Measured 24 children: mean 57.8 MiB, max 96.4 MiB, using p90 = 85.9 MiB
; [www] sized for 4096 MiB RAM, 1536 MiB reserved,
; 85.9 MiB per child, 1 pool(s): worst case 2492 MiB
pm = dynamic
pm.max_children = 29
pm.start_servers = 6
pm.min_spare_servers = 4
pm.max_spare_servers = 8
pm.max_requests = 500
Next steps
- Apply the suggested settings to the pool config.
- Reload php-fpm and watch memory under real traffic.
- Re-measure after plugin or traffic changes.
Connects securely to your tools. The creator never sees your data.
About this skill
Size php-fpm pools to the server's RAM - measure per-child memory with ps, compute pm.max_children with a safety percentile and a reserve for MySQL/Redis/the OS, pick pm dynamic/static/ondemand and spare-server values, and flag an existing pool that can overcommit memory and trigger the OOM killer.
When to use it
Use when the user sees "server reached pm.max_children setting", 502/504 errors from nginx with php-fpm, OOM kills of php-fpm or MySQL, a slow WordPress/Laravel site under load, or asks what pm.max_children should be.
How it works
The skill bundles a tested, offline Python script that does the deterministic checks, and instructions that tell your agent how to collect inputs, run the script, interpret the findings and give you a prioritised fix list. See the demo below for real output.
Requirements
- Python 3.8+ (standard library only unless noted in the skill)
- Works with Claude Code, Codex CLI, Cursor and other SKILL.md-compatible agents
Open source: saizul/vps-devops-skills on GitHub (MIT licence, by Saizul Amin).
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse All Claude Skills.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed 2 days ago
- Software
Python 3.8+