-
-
Notifications
You must be signed in to change notification settings - Fork 654
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
Extremely slow PHPMyAdmin #732
Comments
Thanks for the bug report. This however is not an issue with Devilbox itself, but with the crappy Docker implementation on MacOS(X). Issue was reported on March 2016 and is still unfixed in this very moment: https://forums.docker.com/t/file-access-in-mounted-volumes-extremely-slow-cpu-bound/8076 The above issue has to do with mounted volume performance being really slow on MacOS(X). As phpMyAdmin consists of a huge amount of files, it is generally slow on MacOS(X). The only solutions/workarounds I can provide (and some you will probably not favour) are listed below:
|
Thanx for the quick reply. I'm not sure how docker-sync helps with phpmyadmin |
Hi @cytopia can you explain why phpmyadmin (which is a vendor file inside the PHP docker) is affected by the mac performance issue? BTW, I'm using the docker only for mysql & redis instances, which my Node app connects to... SO I don't need any syncing between host <-> docker |
@felixmosh phpMyAdmin is not inside the PHP container. It resides in the repository and is being mounted here: https://github.com/cytopia/devilbox/blob/master/docker-compose.yml#L174 |
Wow, thanx for the quick answer 🙏🏼. , OK now it make sense. Another question, Can I "build" some how the images and just run them? without the need to sync / mount? |
This is also possible, but requires some steps:
|
Thanx will try it. |
I've tried your idea,
FROM devilbox/php-fpm:7.3-work-0.112
COPY .devilbox/www /var/www/default
FROM devilbox/nginx-stable:0.33
COPY .devilbox/www /var/www/default
All starts without any noticeable error. When I navigate to |
PhpMyAdmin works extremely slow, each query takes ~2 sec.
ISSUE TYPE
Checklist
.env
file is attacheddocker-compose.override.yml
is attached (if it exists)cfg/
dir are attached (if customized)docker-compose logs
andlog/
output is addedOS / ENVIRONMENT
OSX
Docker version 19.03.13, build 4484c46d9d
docker-compose version 1.27.4, build 40524192
4b23dd6d6dad7ade702c3d80d076368f1e962864
SUMMARY
STEPS TO REPRODUCE
I'm using php 7.3 with NGINX & MySQL 8
I've enabled xdebug using
And added custom config for mysql
What I've tried:
,cached
to the MOUNT_OPTIONSEXPECTED BEHAVIOUR
PhpMyAdmin should work faster
ACTUAL BEHAVIOUR
MYSQL speed is OK when accessing from my app (node & php) it is slow just in PhpMyAdmin
OTHER INFORMATION
Start command
File and user permissions (Linux & MacOS)
The text was updated successfully, but these errors were encountered: