php / php/php-src

Make PHP-FPM proctitle customisable

Open
#14,405 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Feature SAPI: fpm
Dominant language
C
Stars
40.4k
Forks
8.1k
Avg merge
2d 13h
Merged PRs (30d)
96

Description

Description

AFAICS, PHP-FPM's proctitle is set to php-fpm + version (e.g. php-fpm8.3).

On machines running multiple PHP-FPM processes (i.e. multiple master processes, not a single process with multiple pools), it would be useful to have separate proctitles. E.g. for tools such as atop that group total resource consumption per procname.

This could be achieved either by making the proctitle customisable, or adding a unique per-process identifier (can't think of one though).

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No source file or test is named. Start by locating PHP-FPM’s proctitle setup in php-src and the entry point that creates the master process; determine how a configurable or unique title should be exposed, then verify that separate master processes receive distinct titles.

Written by the indexing model from the issue text.

Assessment

Tech stack
c, php
Domain
backend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.