Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

XDebug Performance - latest Docker Desktop #665

Closed
leeethompson opened this issue Mar 25, 2022 · 4 comments
Closed

XDebug Performance - latest Docker Desktop #665

leeethompson opened this issue Mar 25, 2022 · 4 comments

Comments

@leeethompson
Copy link

Hi,

I've (in the last couple of days) updated Docker Desktop to the latest version (on Mac). Since the update, performance with Xdebug is abysmal - bordering on unworkable in some instances if I clear the cache c. 5 - 7 minutes to get to a point where I can get to a breakpoint. If I need to go into admin to check some configuration settings, I just disable Xdebug because the wait time is just silly.

Disabling Xdebug alleviates this issue immediately. I was wondering if anyone else has had any issues recently? I've always noticed performance degradation whilst having Xdebug enabled but its always been manageable. This latest version of Docker Desktop seems to have done something.

Are there additional settings that I've just overlooked?

Thanks,
Lee.

@leeethompson
Copy link
Author

leeethompson commented Mar 25, 2022

Seems I've been a little hasty and just needed to be a little more clever with the google search:
docker/for-mac#3455 (comment)

Add tsc=reliable to /Applications/Docker.app/Contents/Resources/linuxkit/cmdline. Restart Docker Desktop.

This has just transformed the environment back to something thats workable using Xdebug again - hopefully this helps anyone else searching around this issue!

@markshust
Copy link
Owner

Thanks for making us aware of this. Was the issue only prevalent for a specific version of Docker Desktop? I have yet to experience any slowdowns (perhaps I'm on another version).

@leeethompson
Copy link
Author

I upgraded to 4.6.1 (76265) last week. It could possibly just be because I don't shut my mac down properly each time.
When restarted all was ok until the screen went to sleep and performance collapsed when I brought it back to life. Hopefully that should be the end of it though - I've not noticed any major issues as of yet :)

@kerryj89
Copy link

kerryj89 commented Apr 3, 2022

I upgraded to 4.6.1 (76265) last week. It could possibly just be because I don't shut my mac down properly each time. When restarted all was ok until the screen went to sleep and performance collapsed when I brought it back to life. Hopefully that should be the end of it though - I've not noticed any major issues as of yet :)

The upgrade might've replace the tsc=reliable in cmdline. I downloaded the new Docker release and it doesn't have that line or expose itself as an option yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants