---
title: Symfony 4.4 overhead with opcache.preload
source: https://docs.newrelic.com/docs/apm/agents/php-agent/troubleshooting/symfony44-performance
---

## Problem [#problem]

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

## Solution [#solution]

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

2.  Ensure that your [preload settings are compliant with Symfony](https://symfony.com/doc/current/performance.html#use-the-opcache-class-preloading).

    > #### 💡 TIP
    >
    > If you're using PHP 7.4, see:
    >
    > -   [Symfony's PHP 7.4 preload documentation](https://symfony.com/blog/new-in-symfony-4-4-preloading-symfony-applications-in-php-7-4)
    > -   [Preloading Symfony Applications in PHP 7.4](https://symfonycasts.com/screencast/symfony5-upgrade/preload)

3.  Restart your service.

## Cause [#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.
