APM v3.0.0

Linux static binaries compiled 2026-11-26. Copy, chmod +x, run. Zero dependencies.

← All releases

Upgrading an existing install? — Since v2.8 a worker with no user line in a root-owned path refuses to start instead of silently running as root, and the CLI needs root or membership of group apm. Run sudo apm healconf after installing: it checks your config and every include, explains each setting this version reads differently, and fixes it with a backup beside the file (--check only reports; --yes applies every safe fix). apm upgrade runs the check for you.
Windows Defender false positive — Microsoft Defender may flag APM binaries as Wacatac.B!ml. This is a known false positive: its ML heuristic misfires on statically compiled Go binaries and UPX-compressed executables. It has been reported to Microsoft for review. All other major antivirus engines report these files as clean — see the VirusTotal links below for full scan results.
Linux
x86_64 / amd64
apm-v3.0.0-x64 standard 10.0 MB
SHA-256: 9134ee44ae855e9be497a44ba2018098d2aa986fe157a0f2e7302419b1a8ef06 VirusTotal ↗
apm-v3.0.0-x64-upx UPX 3.2 MB
SHA-256: 5406b4c773ec9e6708b26c06bf421ab14e11bab1047a4f7b9bbbc38238122459 VirusTotal ↗
Linux
ARM64 / aarch64
apm-v3.0.0-arm64 standard 9.3 MB
SHA-256: 4321f5bb99886c755d42b4b4ef6f5afacf4cb6cac29cb21c9d35bc124713e311 VirusTotal ↗
apm-v3.0.0-arm64-upx UPX 2.7 MB
SHA-256: 495281e27accf9c514f7676f30ffd53d0a1eb7d13cebd49bfeefea14f593af25 VirusTotal ↗
Linux
ARMv7 / armhf
apm-v3.0.0-armhf standard 9.6 MB
SHA-256: 13fd1a4b83e99bfcb617a895f2d8fad95983772364582a4f661da1f07b9810c5 VirusTotal ↗
apm-v3.0.0-armhf-upx UPX 2.7 MB
SHA-256: f0fb2b444e4b86c21005d6af41e2f7dcbd26004e001592d07e7bf71ce0f73ae5 VirusTotal ↗
This release is signed. metadata.json (the SHA-256 of every file above), install.sh and each connector carry an ed25519 signature beside them as <file>.sig. The public key is compiled into every APM binary since v2.10: apm upgrade refuses anything that does not verify, and apm verify <file> <file>.sig checks a download by hand. Key fingerprint (SHA-256 of the public key): f6af819d1b56bcc075a009f5051bb3a4bcf5d0cd962b513d763898a8ca09527f
-----BEGIN PUBLIC KEY-----
MCowBQYDK2VwAyEAJaQi2HxEjH2ncrimkjGwyyj1XYYwfqTtSPuNT2VIiy8=
-----END PUBLIC KEY-----
To check with OpenSSL: openssl pkeyutl -verify -pubin -inkey apm.pub -rawin -in metadata.json -sigfile <(base64 -d metadata.json.sig)

v3.0.0 — the daemon acts as whoever asked, sessions survive every kill, and the GUI is a board

Everything found by the black-box security test of 2.13.0, the connector conformance run and the lab failover, flood, scale and soak runs of 2026-11-24/25, fixed. It is a major version because several defaults change what reaches an application: whose client address a request carries, malformed requests and WebSocket frames that used to be forwarded, who may read a worker's log, and the identity a path is opened as. Read Upgrading from 2.x below before rolling it out; the frame protocol is unchanged, so 3.4.0 connectors keep working.

Security: a file is touched as whoever asked for it

The daemon runs as root and opens, creates, rotates, reads, binds and unlinks paths on a worker's behalf — and did all of that as root, whoever had supplied the path. A member of group apm could write a config into apm.conf.d through -log (root at the next start), read root-only files through -err_log, -env_file and -tls_key, or replace a root-only file with a socket. Now every such operation names an identity: a path from an unprivileged apm run / update / copy is handled with that caller's uid, gid and groups; a path from root's config is walked one component at a time and a symlink is followed only with the privileges of whoever owns it. Worker logs, rotation, apm log / grep, env_file, the TLS files and unix listeners all go through it. Unix sockets now belong to the worker's user, and socket_mode / socket_group close them to other local accounts. A wildcard include passes over logs, backups, hidden files and READMEs. The generated GUI password is no longer in the daemon log (which is now 0640 root:apm), apm log / grep / env are for the worker's owner, and masking catches credential URLs, JWTs, cookies and the like.

The proxy under pressure, and what it believes

  • A descriptor budget. 20,000 held WebSockets used to exhaust the
  • daemon: no listener could accept, apm list hung, and the control socket wrote 19.7 GB of log in four minutes. The last sixteenth of the descriptors is now kept for the daemon itself, one listener may hold three quarters of the rest and one address half (max_conns_per_ip); a client turned away gets 503 with Retry-After. Measured with a million descriptors: 1,200,000 attempts on one listener, 748,463 held, apm list 25–33 ms, another worker on another port 60 of 60.

  • Slow clients. One address may hold a quarter of a listener's
  • pending connections, and repeated header timeouts put it out for 30 s, doubling. Third-party requests during floods: 150 of 150 (was 2 of 200).

  • Request bodies. Chunked bodies reach the app decoded (they arrived
  • empty); max_body (64M) and the daemon-wide body_memory (512M) bound them, and their deadline follows their size.

  • Requests that are not requests — bad or conflicting
  • Content-Length / Transfer-Encoding / Host, folded headers, control bytes — are answered 400. Forbidden WebSocket frames close with 1002 (ws_lenient restores the old tolerance).

  • The client address. A tcp peer's forwarding headers are believed only
  • when it is a proxy: trusted_proxies, or by default loopback, private addresses and Cloudflare. CF-Connecting-IP is read only from Cloudflare. A client can no longer choose its own rate-limit key or step out of a ban_ip range.

  • ban_path matches every form an app might take the path for:
  • /admin;x, /x.php/y, /admin%20, \admin, full-width letters.

  • An idle WebSocket session costs the daemon 19 KB (was 33 KB), and memory
  • goes back to the OS when a crowd leaves.

Sessions change hands without losing anybody

Every session has a home slot. An instance restarted on purpose keeps its sessions and takes them back; one that crashed or was removed has its sessions spread at once over the instances that are running — 17 ms as a client sees it, where it was ~550 ms and all of them went to one replacement. New sessions go to the least loaded instance, a planned stop drains first, and a request whose instance died is offered to two more when that cannot repeat anything. A process that ran for ten seconds before it crashed is restarted at once (with the default err_delay). Measured with 400,000 sessions on eight instances: 1,181,105 times a session lost its process, 1,181,105 were delivered — no counter lost, none given another's data. A 25-minute soak with a kill every 20 seconds ended with 15,000 of 15,000 clients connected after 212,449 hand-overs.

A reload keeps the listeners. A changed env, exec, params, env_file, memory_limit or health_check restarts the instances in place (rolling, drained, sessions held) instead of stopping the worker with its listeners: 381,622 requests at 27,000 a second through apm reload, every one answered 200.

The GUI is a board

New from the feed up. A sentence and a tile per worker that says what needs a human — a crash loop in red with the line it died with, 2 of 3 running in amber, a stopped worker in grey with how and when. A page per worker with per-instance start / stop / restart, traffic, Vanguard, sessions, logs, config and events; a Dashboards view for every worker's dashboard { }; the event history kept by the daemon; Reload config that does what apm reload does; the telemetry level from the page. Every command is answered with what happened. Light and dark, laid out for a phone, keyboard shortcuts, and a stricter Content-Security-Policy (no inline style). The daemon keeps dashboard values from the moment an app starts, so apm gui an hour later shows what was pushed at start-up.

Telemetry in four levels

telemetry off | low | medium | full: one report at start, every hour and at stop, instead of a ping a minute. low stays the default and adds the build channel and which features are in use, as counts of workers; no level sends a host, worker or application name, a path or configuration. apm telemetry prints exactly what the next report contains. See the privacy notice.

Connectors 3.5.0, and a Go connector

An HTTP handler that throws is answered 500 at once (it waited 30 s for the daemon's 504). A closed session or stream lets go of its handlers — the Perl connector grew from 13.3 to 199.9 MB over 42,000 requests and streams, and now by 0.1 MB. writeBinary in every language, dashboard text from PHP and Perl, the raw bytes of a text body as onData's third argument in Node, and an updater that says who it is. Go programs get an official IPC connector: go get github.com/tominkoltd/apm/connectors/[email protected].

Also fixed

A mediator's IPC stream data now reaches its peers. apm reload --all stops workers whose block left the config. apm monitor and apm list keep their columns on a box that has been up for a month. The first reload after a start no longer forgets Vanguard bans. apm gui prints only URLs that work. Dashboards read x / y counted from 0 or from 1, the way they were written.

Upgrading from 2.x

  • A reverse proxy or load balancer on a public address must be listed
  • in trusted_proxies, or every client appears as the proxy. The daemon log names it with the line to add. A proxy that passes CF-Connecting-IP without being behind Cloudflare no longer has it believed when it also sets X-Real-IP or X-Forwarded-For.

  • Malformed requests are 400 and non-compliant WebSocket clients are
  • closed with 1002 (ws_lenient true; for one that cannot be fixed).

  • One listener stops at three quarters of the daemon's descriptors
  • unless max_conns says otherwise.

  • **A root config whose log path runs through a symlink owned by another
  • user** (a capistrano-style current) has that log opened as that user; chown an existing root-owned log to them once.

  • Group apm members can no longer read other users' worker logs or
  • environment; /var/log/apm.log is no longer world-readable; the generated GUI password is printed by sudo apm gui.

  • A wildcard include skips files whose names say they are not configs.
  • A file an include names is loaded whatever it is called.

  • Telemetry reports hourly; telemetry off now also silences
  • remote_logging.

  • Dashboards: a gauge without a color is drawn in the text colour; a
  • dashboard counted from 1 that used x 0; to mean "place it for me" should leave x out.

  • Python connector 3.4.0 cannot update itself (the site refuses its
  • User-Agent): curl -fsSO https://processmanager.dev/connectors/apm_module.py once.

Details, measurements and tests are in the timestamped notes beside this file.