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

MySQL Bug triggers huge memory allocation with high open file limit #47

Conversation

patrickuhlmann
Copy link

On some systems (for example ArchLinux) there is by default a large open file limit configured. MySQL 5.7 has a bug that triggers it to allocate a lot of RAM at startup (more than 16 GB!). This bug was fixed in later versions of MySQL. As a workaround the problem can be avoided by adding small ulimits in the docker-compose file which I have done in this commit.

For more information see here: https://bugs.mysql.com/bug.php?id=96525 and docker-library/mysql#579.

On some systems (for example ArchLinux) there is by default a large open
file limit configured. MySQL 5.7 has a bug that triggers it to allocate
a lot of RAM at startup (more than 16 GB!). This bug was fixed in later
versions of MySQL. As a workaround the problem can be avoided by adding
small ulimits in the docker-compose file which I have done in this commit.

For more information see here: https://bugs.mysql.com/bug.php?id=96525 and
docker-library/mysql#579.
@hunchr hunchr closed this Sep 4, 2024
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

Successfully merging this pull request may close these issues.

2 participants