Get the App
SLTechnology News&Howtos  ›  Database  › 

How to solve the problem that mysql takes up too much resources

Shulou Source: shulou.com Published: 2022-05-31 19:25:19 10月02日 Update

How to solve the problem that mysql takes up too much resources? in view of this problem, this article introduces the corresponding analysis and solution in detail, hoping to help more partners who want to solve this problem to find a more simple and feasible way.

Under linux, it often happens that when using a system like VBB, there will be slowness, suspended animation, too many sleep processes, and so on. As a result, dozens of users took care of the system.

In fact, this is a problem with mysql configuration. In the default linux, the configuration of mysql is my-large.cnf configuration, which is suitable for large servers. Those with high memory, such as 2G memory, 4G memory, are suitable for use, while those with 512m memory are generally not. It takes up 512m of memory to hold the processes of the system mysql, which are stacked for a long time and not released, causing the system to be slow. So, change the configuration to my-small.cnf, and a small configuration will be fine. It is configured as follows:

# Example mysql config file for small systems.

#

# This is for a system with little memory (

Tags: Configuration memory system problems processes resources slow more help answers no easy easy content passwords guys buddies that is situations methods Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Apple Docker NVidia MariaDB Huawei