Comments (7)
If you run docker logs mysql-container
you'll get the MySQL log. Probably only the last bit is really relevant (which you can get with something like docker logs --tail=100 mysql-container
). My hunch would be that you're running out of RAM, but it's hard to say for sure.
from mysql.
I've been using docker logs mysql-container
but i didn't see anything.
I'm now monitoring RAM consumption more thoroughly to see if the problem is the lack of RAM in my machine.
Thank you
from mysql.
When you say crashes, what do you mean. Are you getting an error connecting to it?
from mysql.
The container suddenly stops working. If you look at the logs nothing appears.
I'm with tianon that is lack of RAM problem.
from mysql.
I've experienced precisely the same problem and it was due to a RAM constraint. The application I run typically consumes fairly little RAM (~200MB) but bursts periodically up to over 500MB. During these bursts, the MySQL container (which consumed ~470MB) would consistently crash. As my host only had 1GB total RAM, bumping up to 2GB has so far resolved the issue.
Not sure if this is an issue with this image in particular, but it was difficult to track down. In fact the RAM issue only "clicked" while I happened to glance at top
during one of the bursts I described above... 😢
from mysql.
the default settings of MySQL can be quite memory-hungry. While great for performance, depending on your use case (and environment), you may have to tweak the settings (I.e running with your own configuration file); for an earlier discussion on this, see #3
from mysql.
Since this issue appears to be untouched, and as mentioned in #3 , related to the the underlying system instead of an issue with the image, I am closing this.
In the future, these sorts of questions/requests would be more appropriately posted to the Docker Community Forums, the Docker Community Slack, or Stack Overflow.
from mysql.
Related Issues (20)
- cf
- Issues with mysql:8.0.36-debian HOT 5
- null, message from server: "Host '172.18.0.1' is not allowed to connect to this MySQL server" in windows 11 HOT 1
- Docker issue HOT 1
- latest image has no connection HOT 13
- Single-quote character docker secrets causes failure in user creation HOT 2
- Not found docker image version 5.6.30 HOT 4
- mysql:oracle stopped working after recent pull HOT 6
- MySQL 8.4: 6125 (HY000) at line 1197: Failed to add the foreign key constraint. Missing unique key for constraint HOT 2
- Skip SSL HOT 4
- Container not working after building it HOT 3
- CPU does not support x86-64-v2 in the latest 8.4.0 HOT 11
- Environment broken (container restarting) in last version HOT 5
- Update Docker Image mysql 8.0.37 HOT 5
- Unable to start mysql with --mysql-native-password=ON HOT 5
- Docker character-set and collation-server problem after update HOT 3
- docker 8.4.0 swarm deploy start error: Data Dictionary initialization failed. HOT 6
- Client only variant? HOT 3
- internal users authentication plugin method HOT 2
- It is not possible to replace the "mysql" user with the "other" user for the mysqld process(There is a solution). HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mysql.