pimcore / docker

73 stars 49 forks source link

PHPStorm freezes and request take a very long time if PHPStorm is listening for debug connections #122

Closed HaaseIT closed 1 year ago

HaaseIT commented 1 year ago

I have been having this issue for some time now.

As the title states, PHPStorm completely freezes and is unusable for up to 30 seconds, when it is listening for xdebug connections and the cookie is set. Also, it takes an equal amount of time until the php container starts processing the request.

I don't have this issue with other docker-compose environments.

My local environment is Debian Bookworm (was the same with Bullseye).

Debugging works just fine after the wait and PHPStorm has unfrozen.

Any ideas?

Edit: Just measured the time, request currently takes 66s with phpstorm listening. The Symfony profiler shows a script runtime of a little over 1s, so more than a minute is spent doint whatever.

HaaseIT commented 1 year ago

Just to make sure, I replaced nginx with apache as webserver-container, the issue was unchanged.

dpfaffenbauer commented 1 year ago

I cannot think of a reason why this docker has anything todo with it. even if it has, there is no way for us to debug it and find out.

HaaseIT commented 1 year ago

Yeah, that is what I fear.

I hoped, someone had already encountered this and found a solution.

I reinstalled my machine 3 or 4 times since this started to happen, Tried Debian Bullseye, Ubuntu 22.04 and Debian Bookworm now.

As I said, this is not something I encounter in non-Pimcore docker-compose stacks.

brusch commented 1 year ago

Closing this for now as it is not reproducible.