I have experiencing for a long time some performance issues related to ConfigLoader\Compiled:load() method that is called when Cron command is ran via bin/magento.


  • Magento 2.2.6 Commerce (running in Production mode)
  • PHP 7.1.22 + Opcache(v7.1.22)

One of such NewRelic reports:

new relic report

Basically, Compiled:load() is only including compiled DI configuration PHP files from generated/metadata directory and they looks like this for my case:

generated/metadata content

Any ideas how to troubleshoot this issue?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.