With 3 NextJS apps running, I can see how much better my resources are used:Īllocated Memory (8.02 GB of the maximum configured for Docker, 8.00 GB)īefore this, Docker was using qemu and it was eating a lot of memory (more than the limit I configured).Īll you need to do, if you have macOS 12. I especially notice the difference when starting my NextJS apps (it went from ~20 secs to ~3) or when installing dependencies (time is drastically better here). This, when combined with the new VirtioFS introduced in macOS Monterey 12.2 will make your containers fly like never before. The response time was 2.6s and now 0.85s, so approximately 3x faster. It increases the app speed about 3 times faster. My conclusion is disabling Laravel Debugbar. I researched the reason why my development environment with Mac + Docker + Laravel. Since macOS Big Sur, there is a new Virtualization Framework that software like Docker can use to access the computer resources more effectively. If you feel slow with Mac + Docker + Laravel, the reason may be Laravel Debugbar. If you are a software engineer that uses Docker containers on your macOS for development, you might have experienced how slow can they get sometimes, especially when they start up or with I/O intensive operations like installing dependencies.
0 Comments
Leave a Reply. |