-
Notifications
You must be signed in to change notification settings - Fork 63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PHP-FPM constantly restarting children with New Relic extension enabled in container with non root mode #862
Comments
Debugging a little bit deeper revealed following: here are traces for master and child processes
Child:
Combining with logs above it looks like master process sends It looks like problem occur in |
It turned out that SEGFAULT in grpc extension for some reason leads to hanging mutex in new relic extension. |
Description
I am trying to implement rootless containers for our application (php-fpm + nginx in k8s).
Problem occurs only when new relic extension is enabled (more precisely - when extension successfully connects to daemon. if not - everything works fine)
Depending on
pm
mode I observe following situations:dynamic
mode at some point children start receivingSIGKILL
after ~10-20 seconds. Master process constantly restarting these processes as it expects children to finish withSIGQUIT
static
mode ifmax_requests
is set php-fpm stop correctly working after all children exceedsmax_requests
value, Master process can't respawn childrenstatic
mode ifmax_requests
is0
everything works fine. When running container under root user everything works fine as well.At the same time I don't see any suspicious logs and metrics/transactions are correctly sent to New Relic collectors. There are no traffic on application except kube probe. There are no any spikes in memory/cpu utilisation
Steps to Reproduce
Set up pod with enabled security context and non root user with enabled new relic extension
Generate traffic (for example, 5 VU for 5 minutes)
Stop traffic
Expected Behavior
PHP-FPM should work as expected under non root user
Relevant Logs / Console output
Your Environment
Dockerfile
PHP-FPM configuration
New Relic configuration
PHP version:
New Relic version:
New Relic daemon version 10.18.0.8-e78afe1fd086
The text was updated successfully, but these errors were encountered: