Git Product home page Git Product logo

Comments (7)

tianon avatar tianon commented on September 17, 2024

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.

ethervoid avatar ethervoid commented on September 17, 2024

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.

benkiefer avatar benkiefer commented on September 17, 2024

When you say crashes, what do you mean. Are you getting an error connecting to it?

from mysql.

ethervoid avatar ethervoid commented on September 17, 2024

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.

bentruyman avatar bentruyman commented on September 17, 2024

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.

thaJeztah avatar thaJeztah commented on September 17, 2024

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.

qedrakmar avatar qedrakmar commented on September 17, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.