This can be done by editing the configuration file or recompiling the service. So, the first step is to monitor the application running in the container and to optimize the service. Unoptimized applications could take up more than optimal memory. For instance, an improperly configured MySQL service can quickly consume the entire host memory. So the first option is to identify the cause of this memory usage.Īfter identifying the cause, the following corrective actions can be done in the Docker system to avoid further such OOM crashes. Improperly configured services, abusive processes or peak traffic can lead to memory shortage. But, the first resort should not be to increase the RAM in the host machine. When a Docker container exits with OOM error, it shows that there is a lack of memory. Many often, when usage and traffic increases, the available free memory may be insufficient for all the containers. As a result, containers may crash. The memory limit that can be allotted to the Docker containers is limited by the total available memory in the host machine which hosts them.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |