Your PHP-FPM log says this, over and over:
WARNING: [pool www] server reached pm.max_children setting (40), consider raising it
Pages hang for seconds or time out. Often the CPU is close to idle, which makes no sense if PHP is “overloaded.” Mine also tripped CPU alarms on a small instance, which kept me looking in the wrong place for a month. (With pm = ondemand the message reads server reached max_children setting without the pm. prefix. With pm = static FPM logs nothing at all and requests just wait.)
In my case the cause was one small endpoint. Every client fired five AJAX requests at it in parallel. PHP’s default session handler locks the session file, so those five requests waited on each other, one at a time. Each one, once it got the lock, made a live call to a third-party API that took 3 to 10 seconds, with no cache. Workers spent their time waiting, not computing, and the pool ran dry.
This article explains both mechanisms, shows how to see them on your own server, and gives the fixes in code and config. It is for anyone running PHP behind PHP-FPM with nginx or Apache.
Last verified: December 2026. Supported PHP branches today are 8.2 (security fixes only, ending December 31, 2026), 8.3 (security fixes only), 8.4, 8.5 and 8.6. Ubuntu 24.04 ships PHP 8.3 and Ubuntu 26.04 ships PHP 8.5. The server in this story ran PHP 8.1. All PHP was checked with php -l; the session behavior and the cache helper were also run on PHP 8.3.6 CLI on a test machine.
How an FPM pool runs out of workers
PHP-FPM (FastCGI Process Manager) runs a pool of worker processes. The web server hands each PHP request to one worker, and that worker belongs to the request until the script ends. It does not matter whether the script is computing, waiting for MySQL, waiting for a file lock or waiting for a remote API. A waiting worker is a busy worker.
pm.max_children caps the number of workers. When every worker is busy, new requests wait in the socket’s listen backlog (listen.backlog; on Linux since PHP 8.2 the default is -1, which the kernel caps at net.core.somaxconn, 4096 on current kernels) until a worker frees up. That backlog wait is the hang your users see.
The number of workers you need is roughly the request rate multiplied by how long each request holds a worker. At 20 requests per second and 0.2 seconds per request, 4 workers are busy on average. If those same requests start taking 8 seconds because they are waiting on something, you need 160. Nothing about the CPU changed. Only the waiting did.
Two details of the FPM status page trip people up here. A worker in state Running is inside a request, which says nothing about CPU use. And the last request cpu field is 0 for any worker that is not idle, because FPM only calculates it when the request finishes.
What I saw, what I checked, what it was
The server was a production PHP web application behind Apache on a cloud instance with 2 vCPUs. Over about a month it had a string of “the site is slow” incidents, and each one seemed to have a different cause.
First incident. After the site’s search service restarted, I found 54 FPM processes. I counted them by process state with this one-liner, which reads the STAT column from ps:
ps aux | grep php-fpm | grep -v grep | awk '{print $8}' | sort | uniq -c
19 were R (running) and 33 were S (sleeping). That was far more workers than 2 vCPUs can run at once, so I cut pm.max_children to 25. The worker count dropped. The site stayed slow. That was my first wrong turn: I had limited the damage without finding out what the workers were waiting for.
Second incident. The instance was a burstable type and ran out of CPU credits. I switched it to unlimited mode, which lets it stay above its CPU baseline for as long as it needs, at a flat extra rate per vCPU-hour when the 24-hour average stays above baseline. There were 61 workers, 39 of them sleeping, and I suspected they were blocked on an outbound API call. I didn’t prove it then. In hindsight, unlimited mode probably only hid the symptom.
Third incident. A database alert fired for max_connections, and the process list showed a pile of idle Sleep connections. FPM workers piled up less than 20 minutes later. That connection leak was a real problem of its own. I never showed that it came from the same endpoint, so I am leaving it out of this story.
The one that found it. I turned on the FPM status page. Getting it to work through Apache took a detour: a ProxyPass inside a <LocationMatch> block did nothing and logged no error. The Apache documentation explains why: inside <LocationMatch>, ProxyPass does not treat the pattern as a regular expression, and you need ProxyPassMatch instead. A plain <Location> block with SetHandler worked on the first try (the config is below).
The full status view showed 38 of 40 workers serving the same script, a small endpoint that proxied a third-party weather API. The status output and the script itself showed the pattern: each client page requested five panels of the same widget in parallel, and each request ran that script from the top. The script called session_start(), then curl_exec() to the provider, which took 3 to 10 seconds.
We removed the session_start() call from that script. On the status page, active processes went from 38 before the change to 18 after it, and idle processes from 2 to 19. That field is a point-in-time gauge, so those are two snapshots, not averages. The remaining fixes were to cache the API responses for 5 to 10 minutes and collapse the five calls into one. The developers who own that code later refactored it. On the FPM side I set request_terminate_timeout = 30 (it had been 0, meaning never) and kept pm.max_children reduced.
The status page’s slow requests counter also fell, from 1,145 to 6. I don’t use that as a before-and-after measure. It accumulates from the moment the pool starts and never goes down while the pool runs, so a fall means the pool restarted between the two readings, and the two numbers cover windows of different lengths.
Mechanism 1: the session lock
PHP’s default session handler is files. When you call session_start(), it opens the session file (sess_<id> under session.save_path, which is /var/lib/php/sessions on Debian and Ubuntu) and takes an exclusive flock() on it. In the PHP source this is a plain flock(fd, LOCK_EX) in ext/session/mod_files.c, which blocks until no other process holds the lock. The lock is released when the session is closed: either when you call session_write_close() or when the script ends and PHP writes the session out. The PHP manual puts it plainly: “only one script may operate on a session at any time.”
So when one browser sends five requests at once with the same session cookie, the first one gets the lock and the other four wait inside session_start(). Each waiting request holds an FPM worker the entire time.
Three parallel requests from one session become three sequential requests that hold three workers.
This reproduces on a test machine (not the production server): PHP 8.3.6’s built-in web server with PHP_CLI_SERVER_WORKERS=8, so it can serve requests concurrently, and a script that calls session_start() and then sleeps for 2 seconds in place of the API call. Five parallel requests with one cookie finished at 2, 4, 6, 8 and 10 seconds. With session_start(['read_and_close' => true]) instead, three repeated runs finished all five requests at 2.0 seconds. (An occasional run has one request finish at 4 seconds. The same happens with a script that never touches the session, so it comes from how the built-in server hands connections to its workers.)
session.lazy_write, which is on by default, does not help. It only skips rewriting session data that hasn’t changed. The lock is still held from session_start() until close.
Fixes for the lock
If the script doesn’t use the session at all, don’t start one. That was our fix. Check that session.auto_start is off (it is by default), or PHP starts a session on every request for you.
If the script only reads the session, open it with read_and_close. PHP reads the data into $_SESSION and releases the lock immediately:
<?php
declare(strict_types=1);
require __DIR__ . '/../lib/api_cache.php';
// Read what we need from the session and release the lock immediately.
session_start(['read_and_close' => true]);
$locationId = $_SESSION['location_id'] ?? 'default';
$json = cached_fetch('https://api.example.com/v1/forecast?location=' . rawurlencode($locationId));
header('Content-Type: application/json');
if ($json === null) {
http_response_code(503);
echo '{"error":"forecast unavailable"}';
exit;
}
echo $json;
If the script must write to the session, do all the writes first, then call session_write_close() before any slow work:
<?php
declare(strict_types=1);
require __DIR__ . '/../lib/api_cache.php';
session_start();
$locationId = $_SESSION['location_id'] ?? 'default';
$_SESSION['last_seen'] = time(); // do every session write here...
session_write_close(); // ...then release the lock before slow work
// $_SESSION is still readable below this line, but changes are no longer saved.
$json = cached_fetch('https://api.example.com/v1/forecast?location=' . rawurlencode($locationId));
header('Content-Type: application/json');
echo $json ?? '{"error":"forecast unavailable"}';
The comment in that block holds on the test machine: after session_write_close(), values already in $_SESSION stay readable, and anything you assign afterwards is silently dropped.
Other session handlers
Moving sessions to Memcached or Redis changes the behavior, and not always for the better:
- php-memcached locks by default (
memcached.sess_locking = On). A request that finds the lock taken retries a limited number of times (memcached.sess_lock_retries, default 5, with waits of 150 ms by default) and then gives up. You trade a long queue for failed session starts. - phpredis does not lock by default (
redis.session.locking_enableddefaults to 0). Nothing queues, but two parallel requests that both write the session will overwrite each other, and the last write wins. - Frameworks often ship their own session handlers with their own locking rules. Check which handler yours uses before assuming any of the above.
Changing the handler is a bigger decision than adding read_and_close. Fix the scripts first.
Mechanism 2: the uncached API call with no timeout
A synchronous HTTP call on the request path makes the provider’s response time part of yours. If the provider takes 8 seconds, your request takes 8 seconds and holds a worker for all 8. With no cache, every page view makes a fresh call, so worker demand scales with your traffic multiplied by their latency. When they have a bad day, you have an outage.
The defaults make this worse than it looks. libcurl’s connect timeout (CURLOPT_CONNECTTIMEOUT) defaults to 300 seconds, and its total timeout (CURLOPT_TIMEOUT) defaults to 0, which means never. PHP’s max_execution_time won’t save you either: on Linux it only counts time spent executing the script itself, and the manual says time in stream operations, system calls and database queries is excluded. A worker can sit in curl_exec() far longer than max_execution_time. The only FPM setting that stops a request on wall-clock time is request_terminate_timeout, and it defaults to 0 (off).
Fix 1: timeouts
Set both a connect timeout and a total timeout on every outbound call. Here is the helper the examples above use. Put it in lib/api_cache.php; the endpoint scripts above live in public/ and the refresh script below in bin/, both next to lib/:
<?php
declare(strict_types=1);
// Must be writable by the PHP-FPM pool user (www-data on Debian and Ubuntu).
const CACHE_DIR = '/var/cache/example-app';
/**
* One HTTP GET with hard limits. Returns the body, or null on any failure.
*/
function fetch_with_timeouts(string $url): ?string
{
$ch = curl_init($url);
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CONNECTTIMEOUT => 2, // DNS + TCP + TLS handshake, seconds
CURLOPT_TIMEOUT => 4, // the whole transfer, seconds
CURLOPT_FAILONERROR => true, // HTTP 400 and above count as failure
]);
$body = curl_exec($ch);
if ($body === false) {
error_log('upstream fetch failed: ' . curl_error($ch));
return null;
}
return $body; // no curl_close(): it does nothing since PHP 8.0
}
Pick the numbers from the provider’s normal latency, not from hope. A timeout turns “hangs forever” into “fails in 4 seconds,” which still costs a worker for 4 seconds. That is why you also need the cache.
Fix 2: cache with an expiry, and serve stale on failure
Most third-party data does not change every second. A forecast is fine at five minutes old. The function below (same file) serves from a local file while it is fresh. When the copy expires, one request refreshes it while the others keep serving the old copy, and if the refresh fails, everyone keeps the old copy:
function read_copy(string $file): ?string
{
$s = @file_get_contents($file);
return $s === false ? null : $s;
}
/**
* Serve from cache while fresh. When stale, let one request refresh it
* while the others keep serving the old copy. If the refresh fails,
* serve the old copy. Returns null only when there is no copy at all.
*/
function cached_fetch(string $url, int $ttl = 300): ?string
{
$file = CACHE_DIR . '/' . hash('sha256', $url);
$mtime = @filemtime($file);
$have_copy = $mtime !== false;
if ($have_copy && time() - $mtime < $ttl) {
return read_copy($file); // fresh: no network
}
$lock = fopen($file . '.lock', 'c');
if ($lock === false) { // cache dir not writable
return read_copy($file) ?? fetch_with_timeouts($url);
}
if (!flock($lock, LOCK_EX | LOCK_NB) && $have_copy) {
fclose($lock); // someone else is refreshing
return read_copy($file);
}
$body = fetch_with_timeouts($url);
if ($body !== null) {
$tmp = $file . '.' . getmypid() . '.tmp';
if (file_put_contents($tmp, $body) !== false) {
rename($tmp, $file); // atomic on one filesystem
}
}
fclose($lock); // also releases the flock
if ($body !== null) {
return $body;
}
return read_copy($file); // stale beats nothing
}
/**
* Request-path reader for when a background job keeps the cache warm.
* Never touches the network.
*/
function cache_only(string $url): ?string
{
return read_copy(CACHE_DIR . '/' . hash('sha256', $url));
}
The non-blocking LOCK_NB matters. Without it, when the cache expires every request that arrives during the refresh would call the provider at once. Writing to a temporary file and then calling rename() means readers never see a half-written file. Create the directory before you deploy:
sudo install -d -o www-data -g www-data -m 0750 /var/cache/example-app
On the test machine, cached_fetch() ran against two local endpoints, one fast and one that sleeps 5 seconds. Cold and warm reads of the fast endpoint both returned at once. The slow endpoint with no cached copy returned null after 4.00 seconds, the total timeout. With a stale copy planted, it returned the stale copy after 4.00 seconds.
The cache key here is the full URL. If the URL carries an API key, the key never lands on disk, because the file name is a SHA-256 hash. Also check the provider’s terms; some limit how long you may store their data.
Fix 3: take the fetch off the request path
Even with timeouts and a cache, one unlucky request per expiry still waits on the provider. If you know the set of URLs in advance, refresh them from a timer and let web requests read only the cache with cache_only(). bin/refresh_cache.php:
<?php
declare(strict_types=1);
// Run from a systemd timer or cron as the pool user. Never from a web request.
require __DIR__ . '/../lib/api_cache.php';
$urls = [
'https://api.example.com/v1/forecast?location=<LOCATION_ID>',
];
foreach ($urls as $url) {
// A TTL of 0 forces a refresh attempt. If it fails, the old copy stays.
if (cached_fetch($url, 0) === null) {
fwrite(STDERR, "no data for $url\n");
}
}
Run it every five minutes with a systemd timer. Create the service with sudo vim /etc/systemd/system/example-app-refresh.service (in vim, press i to insert, then Esc and :wq to save and quit):
[Unit]
Description=Refresh cached third-party API responses
[Service]
Type=oneshot
User=www-data
Group=www-data
ExecStart=/usr/bin/php /var/www/example-app/bin/refresh_cache.php
Then the timer, with sudo vim /etc/systemd/system/example-app-refresh.timer:
[Unit]
Description=Refresh cached third-party API responses every 5 minutes
[Timer]
OnBootSec=1min
OnUnitActiveSec=5min
[Install]
WantedBy=timers.target
sudo systemctl daemon-reload
sudo systemctl enable --now example-app-refresh.timer
systemctl list-timers example-app-refresh.timer
The trade-off is that data can be up to one interval plus one failed refresh old, and the refresher has to know every key. If keys are open-ended (one per user location, say), keep cached_fetch() on the request path and accept the occasional slow refresh.
Before and after: the request path stops depending on the provider’s latency.
How to check you have the same problem
Turn on the status page safely
The status page shows every worker and the URI it is serving. That includes query strings, which can hold tokens, so it must never be reachable from the internet. Set your PHP version once so the commands below paste cleanly:
PHPV=8.3 # 8.5 on Ubuntu 26.04; run ls /etc/php to see yours
sudo vim /etc/php/$PHPV/fpm/pool.d/www.conf
Add or uncomment:
pm.status_path = /fpm-status
ping.path = /fpm-ping
; PHP 8.0+: serve status from a separate hidden pool on its own socket,
; so it still answers when every normal worker is busy.
; Use your PHP version in the socket name.
pm.status_listen = /run/php/php8.3-fpm-status.sock
pm.status_listen matters for exactly this problem. Without it, the status request needs a free worker from the same exhausted pool, and it queues behind everything else. Use a Unix socket, not the 127.0.0.1:9001 from the commented example in www.conf. The hidden pool copies the main pool’s listen.owner, listen.group and listen.mode, so only the web server’s user can connect. It also runs ordinary PHP scripts if asked, so on a TCP port any local user, or any SSRF bug in your application that can reach that port, could make FPM run PHP as the pool user.
Test and reload:
sudo php-fpm$PHPV -t
sudo systemctl reload php$PHPV-fpm
The test should print NOTICE: configuration file /etc/php/8.3/fpm/php-fpm.conf test is successful.
Expose it only on a loopback listener. Change 8.3 in the socket paths below to your version. For nginx, create /etc/nginx/conf.d/fpm-status.conf:
server {
listen 127.0.0.1:8081;
location ~ ^/(fpm-status|fpm-ping)$ {
access_log off;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_pass unix:/run/php/php8.3-fpm-status.sock;
}
}
Test and reload with sudo nginx -t && sudo systemctl reload nginx.
For Apache, create /etc/apache2/sites-available/fpm-status.conf. This is the <Location> plus SetHandler form that worked for me, pointed at the status socket:
Listen 127.0.0.1:8081
<VirtualHost 127.0.0.1:8081>
<Location "/fpm-status">
Require local
SetHandler "proxy:unix:/run/php/php8.3-fpm-status.sock|fcgi://localhost"
</Location>
<Location "/fpm-ping">
Require local
SetHandler "proxy:unix:/run/php/php8.3-fpm-status.sock|fcgi://localhost"
</Location>
</VirtualHost>
Enable it with sudo a2enmod proxy_fcgi && sudo a2ensite fpm-status && sudo apache2ctl configtest && sudo systemctl reload apache2. If you don’t use pm.status_listen, point either config at the pool’s normal socket instead, for example proxy:unix:/run/php/php8.3-fpm.sock|fcgi://localhost in Apache. One caution about Require local: if a reverse proxy runs on the same machine, every request it forwards comes from 127.0.0.1 and counts as local. Binding to a separate loopback port avoids that.
curl -s http://127.0.0.1:8081/fpm-ping
curl -s http://127.0.0.1:8081/fpm-status
The first should print pong. No -k and no TLS are needed, because the traffic never leaves the machine.
Read the fields
The fields that matter for exhaustion:
listen queue: requests waiting for a free worker right now. Anything above 0 under normal load means the pool is saturated. FPM only measures this on a TCP listener. On a Unix socket, the Debian and Ubuntu default,listen queueandlisten queue lenalways read 0, so lean on the fields below.active processesandidle processes: workers inside a request versus waiting for one. Many active workers and a quiet CPU is the signature of waiting.max children reached: incremented each time the pool hits the cap, at the same point FPM writes the warning to its log. It counts episodes, not rejected requests.slow requests: requests that ran longer thanrequest_slowlog_timeout.memory peak: added in PHP 8.4.
The last three are cumulative since the pool started (see start since). Compare two readings taken a known time apart. A single reading tells you nothing about now.
To see which script holds the workers, group running workers by URI:
curl -s 'http://127.0.0.1:8081/fpm-status?full' \
| awk -F': +' '/^state:/ {s=$2} /^request URI:/ && s=="Running" {sub(/\?.*/, "", $2); print $2}' \
| sort | uniq -c | sort -rn | head
If one script dominates the list, you have found your suspect. That is how mine showed up.
Turn on the slowlog
The slowlog makes FPM dump a PHP stack trace for any request that runs longer than a threshold. Add to the same pool file:
; use your PHP version in the file name
slowlog = /var/log/php8.3-fpm-slow.log
request_slowlog_timeout = 5s
request_terminate_timeout = 30s
slowlog is required once request_slowlog_timeout is set. request_terminate_timeout kills a worker after 30 seconds of wall-clock time. The user gets an error instead of a hang, and the kernel releases any session lock that worker held when its file descriptors close. Treat it as a backstop, not a fix. Test and reload as before.
An entry looks like this (illustrative, in the format FPM writes, with the paths changed):
[<timestamp>] [pool www] pid 41230
script_filename = /var/www/app/public/widget.php
[0x00007f3c1a2140a0] curl_exec() /var/www/app/lib/ApiClient.php:42
[0x00007f3c1a214020] get() /var/www/app/public/widget.php:20
The top frame is where the request was when the timer fired. curl_exec() at the top means waiting on the network. session_start() at the top means waiting on a session lock. Rank the top frames across the whole file:
sudo awk '/^script_filename/ {getline; print $2, $3}' /var/log/php$PHPV-fpm-slow.log | sort | uniq -c | sort -rn | head
Each trace is one snapshot taken at the moment the timeout passed, so read the counts, not any single entry. The slowlog also omits the request URI. The FPM error log has it: at the same moment, FPM writes a line like [pool www] child 41230, script '/var/www/app/public/widget.php' (request: "GET /widget.php?part=map") executing too slow (5.012345 sec), logging. Match the two by PID. On Debian and Ubuntu the error log is usually /var/log/php<VERSION>-fpm.log; grep ^error_log /etc/php/$PHPV/fpm/php-fpm.conf shows yours.
In containers, the slowlog may stay empty and the FPM log may show failed to ptrace(ATTACH) child. FPM takes the trace with ptrace, which container runtimes often block unless the container has the SYS_PTRACE capability.
See what workers are blocked on
Count workers by state (FPM names its worker processes php-fpm: pool <name>):
ps -eo stat=,args= | awk '/[p]hp-fpm: pool/ {print substr($1,1,1)}' | sort | uniq -c
Many S (sleeping) workers while the pool is full means they are waiting, not working.
Count how many workers have each session file open. More than one on the same file means a queue:
sudo lsof -n -c php-fpm 2>/dev/null | awk '/sess_/ {print $NF}' | sort | uniq -c | sort -rn | head
On the test machine, with four parallel requests on one session, it printed:
4 /var/lib/php/sessions/sess_30cafefttplbqrtk5nmf62vv2a
In the full lsof output, the holder’s FD column reads 6uW (W is a write lock on the entire file) and the waiters read 6u. The kernel’s lock table shows the same queue. On the 6.18 test kernel, waiters appear under the holder with ->:
7: FLOCK ADVISORY WRITE 624 fe:00:1220609 0 EOF
7: -> FLOCK ADVISORY WRITE 619 fe:00:1220609 0 EOF
7: -> FLOCK ADVISORY WRITE 626 fe:00:1220609 0 EOF
To check a single worker, attach strace for a moment (press Ctrl+C to detach):
sudo strace -p <PID>
A worker waiting on the session lock shows flock(6, LOCK_EX and nothing more until the lock frees. That is what the test machine showed. A worker waiting on an API usually sits in poll() or ppoll(), and sudo ls -l /proc/<PID>/fd shows that descriptor is a socket. To count workers with an open HTTPS connection to anywhere:
sudo ss -tnp state established '( dport = :443 )' | grep -c php-fpm
Why raising pm.max_children alone does not fix it
The log message says “consider raising it,” and it is wrong about the cause here.
If workers are waiting on a session lock, more workers means more waiters on the same lock. One session’s requests still run one at a time. If workers are waiting on an API with no timeout, demand has no upper bound: any cap you choose fills up the first time the provider slows down, and every extra worker is one more concurrent call to a provider that is already struggling. Past what your RAM can hold, extra workers push the machine into swap or the OOM killer. Lowering the cap, as I did first, protects the machine but moves the queue into the listen backlog. Either way the site is slow, because the waiting is still there.
Raise the cap only after the waiting is gone, and size it from memory.
Sizing the pool from memory per worker
Measure what a worker actually costs. ps reports RSS (resident set size), which counts shared memory such as the OPcache segment in full for every worker, so adding it up overstates the total. PSS (proportional set size) splits each shared page among the processes that share it. Average it across the workers under real traffic:
for p in $(pgrep -f 'php-fpm: pool www'); do sudo awk '/^Pss:/ {print $2}' /proc/$p/smaps_rollup; done \
| awk '{s+=$1; n++} END {printf "workers: %d avg PSS: %.1f MB\n", n, s/n/1024}'
Then:
pm.max_children = (RAM you can give PHP) / (average worker PSS, plus headroom)
“RAM you can give PHP” is total RAM minus the OS, the database, any search service and the page cache you want to keep. As an illustration only: with 3 GB left for PHP and workers averaging 60 MB with a 20 percent margin (72 MB), the cap is about 42.
CPU is the other ceiling. If your pages really are CPU-bound, workers beyond a small multiple of the core count mostly add context switching. That is a rule of thumb, not a law; measure with your own traffic.
What I would do differently
I would turn on the status page, pm.status_listen and the slowlog on every PHP server before the first incident. The first look at the full status page named the script. A month of guessing at CPU and worker counts had not.
I would put any script that calls a third party into its own FPM pool with a small pm.max_children, so a slow provider can exhaust that pool and nothing else.
I would not switch billing modes to make a CPU alarm stop until I knew which script was holding the workers.
What to watch from now on: listen queue above zero (on a TCP listener), the rate of change of max children reached, and the share of running workers on any one URI.
Sources and further reading
- PHP: Supported Versions: supported branches and end dates as of December 2026.
- PHP manual: FPM status page: status fields,
fulland output formats. - PHP manual: FPM configuration:
pm.*,pm.status_listen,request_slowlog_timeout,request_terminate_timeout,listen.backlog. - php-src: sapi/fpm: exact log messages (
fpm_process_ctl.c,fpm_request.c), slowlog format (fpm_php_trace.c) and thewww.conf.incomments. - php-src: ext/session/mod_files.c: the
flock(LOCK_EX)in the files session handler. - PHP manual: session_write_close: one script per session at a time.
- PHP manual: session_start: the
read_and_closeoption. - PHP manual: session configuration:
session.save_handler,session.lazy_write. - PHP manual: Memcached runtime configuration:
memcached.sess_lockingand retry defaults. - phpredis README: session locking is off by default.
- PHP manual: set_time_limit: what
max_execution_timedoes not count. - libcurl: CURLOPT_CONNECTTIMEOUT and CURLOPT_TIMEOUT: defaults of 300 seconds and never.
- Apache mod_proxy: ProxyPass: why
ProxyPassinside<LocationMatch>does not work. - Apache mod_proxy_fcgi: the
SetHandler "proxy:..."form. - Linux kernel: /proc filesystem: PSS and
smaps_rollup. - flock(2): when a lock blocks and when it is released.
- AWS: Unlimited mode for burstable performance instances: what unlimited mode does and costs.