• /
  • EnglishEspañol日本語한국어Português
  • ログイン今すぐ開始

Symfony 4.4 overhead with opcache.preload

Problem

When using Symfony 4.4, you are experiencing large performance impacts when opcache.preload is active.

Solution

  1. In your newrelic.ini file, set newrelic.preload_framework_library_detection = false.

  2. Ensure that your preload settings are compliant with Symfony.

    ヒント

    If you're using PHP 7.4, see:

  3. 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.

Copyright © 2024 New Relic株式会社。

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.