Works with the AI Agents you already use

    Claude CodeClaude CodeCursorCursorCodex CLICodex CLIDeepSeekDeepSeekMuseMuse+22 more

    PHP-FPM Pool Sizing Calculator

    by Saizul Amin

    1

    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

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    Security scanned
    PHP-FPM Pool Sizing Calculator

    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

    1. Apply the suggested settings to the pool config.
    2. Reload php-fpm and watch memory under real traffic.
    3. 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. 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. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 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.

    Frequently Asked Questions

    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.

    This skill uses the open SKILL.md standard. Use it through an MCP-compatible agent connected to Agensi, and check the compatibility information on this page for confirmed agents and required capabilities.

    Connect your AI agent to Agensi through MCP, then ask it to use PHP-FPM Pool Sizing Calculator on your task. Your agent loads the latest approved version each time. Paid skills require a purchase or active subscription. Skill files are not available for download; your licence does not allow you to save, copy or export any part of a skill.