php / php/php-src

Core dumps with PHP-FPM on dynamic mode

Open
#12,626 2 comments 4 reactions 1 assignee View on GitHub

@bukka is already working on this.

Since Nov 9, 2023.

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

Description

Description

Actual result

We run PHP-FPM in dynamic mode.

With the following settings, when SIGKILL event is sent during PHP-FPM spare servers scaling down, core dumps are generated on our application.

pm = dynamic
pm.start_servers = 4
pm.min_spare_servers = 2
pm.max_spare_servers = 4
pm.max_children = 10
pm.max_requests = 100

2023-11-06T21:09:49.65381919Z stderr F [06-Nov-2023 21:09:49] WARNING: [pool www] child 132 exited on signal 9 (SIGKILL) after 214.882381 seconds from start

Expected result

No core dumps should be generated by SIGKILL.

PHP Version

PHP 8.2.12

Operating System

Debian GNU/Linux 12 (bookworm)

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.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.