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

How to limit mysql's memory? #3496

Closed
Insua opened this issue Jan 23, 2024 · 2 comments
Closed

How to limit mysql's memory? #3496

Insua opened this issue Jan 23, 2024 · 2 comments

Comments

@Insua
Copy link
Contributor

Insua commented Jan 23, 2024

Description:

mysql image took my 60 percent memory

Expected Behavior:

mysql use 1G ~ 2G memory was excepted

Context information:

Output of git rev-parse HEAD

06cc77a15623350fb9c595b1b86ced824e870013

Output of docker version

24.0.7

Output of docker-compose version

2.24.2

System info: Mac, Windows or Linux. Include which disto/version

archlinux

Steps to reproduce the issue:

docker-compose up -d mysql

Stacktrace & Additional info:

I change my.cnf

innodb_use_native_aio=0
performance_schema_max_table_instances=400
table_definition_cache=400    
performance_schema=off  
table_open_cache=64    
innodb_buffer_pool_chunk_size=64M  
innodb_buffer_pool_size=64M  

But does't work
@parallels999
Copy link

docker-compose build mysql
docker-compose up -d mysql

@Insua
Copy link
Contributor Author

Insua commented Jan 26, 2024

change version to 8.0 only take 400M memory

@Insua Insua closed this as completed Jan 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants