Problem
When using Symfony 4.4, you are experiencing large performance impacts when opcache.preload
is active.
Solution
In your
newrelic.ini
file, setnewrelic.preload_framework_library_detection = false
.Ensure that your preload settings are compliant with Symfony.
Sugerencia
If you're using PHP 7.4, see:
Restart your service.
Cause
When newrelic.preload_framework_library_detection
and opcache.preload
are both enabled, we query the opcache
status with each function call. However, there are several issues related to using Symfony 4.4 that can result in this query returning null
. This consistently happening will cause significant overhead in New Relic's PHP agent.
Currently, this issue has only been reported by environments using Kubernetes.