11/8/2019 Docker For Mac Too Slow
Ask HN: Is it just me or why does Docker suck so much? 97 points by antocv on Aug 12, 2014| hide| past. I use Docker at home too[1] because it does make thinking about things easier. And the pushing and pulling operations are slow like hell. It's really painful to use it in production. It slows down your whole deployment process,.
A quick history ed: If you want to jump right to the solution, jump ahead to. It is so slow that I purchased a new Dell XPS laptop and for the first time in 6 years am now using a non-MacOS (Fedora) machine as my daily driver. Not everyone has the luxury of switching their OS, though, and they are stuck on slow Docker. A normal Symfony 2.4 application will commonly see between 400ms-750ms response times in development mode, without Xdebug installed. If Xdebug is activated response times of 1,200ms+ can frustrate even the most devoted Xdebug fan. Before switching to Fedora I tried everything I could to minimize Xdebug’s impact on performance.
And while I always felt the benefits of Xdebug far out-weighed the extra slowness, I knew there had to be a better way. How Xdebug decides to run There are several ways of enabling Xdebug for a specific session. The more popular ways are using cookies, like those generated. You can also kick Xdebug off via CLI to debug command line scripts without a web portion.
All methods share the same requirement: Xdebug must be installed and loaded on the system to work. The all also let the PHP layer of your application decide whether to enable Xdebug for the current session. If you take a look at PhpStorm’s bookmarklets, the code is actually quite simple.
Comments are closed.
|
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |