Symfony 3.4 very slow with Docker on WSL2

I rarely post on SO, but this time, I’m going really desesperate.

The Symfony 3.4 project I work on in my company run under Docker installed on a WSL2 machine. Previous developpers choose this way to develop on multiple projects. It work fine on their machine, but on my machine, it probably has the slowest execution time I ever seen on a PHP project.

Here are some screenshots of the performance (even the profiler screen took minutes to display) :

enter image description here

enter image description here

enter image description here

enter image description here

I precise that LocaleListener has very very few code, nothing that should take minutes to execute.

And it does this for every request, or AJAX request, on every page of the website. It is a nightmare to work on, and nobody in the team know why.
We all use the same docker-compose file.

Any help would be appreciated.

Source: Symfony Questions

Was this helpful?

0 / 0

Leave a Reply 0

Your email address will not be published. Required fields are marked *