The apache2 and mysql memory of the server is unusually high.

now I can only set apache, to restart every hour in cron, but this method treats the symptoms rather than the root of the problem.
I am Ubuntu 16 + apache2 + php7.0 + mysql5.7

after running for a period of time, mysql hung up, and restart prompted insufficient memory. My top query found that apache2 and php occupied too much memory
. After I restarted apache, mysql can start normally, but it is estimated that it will hang up later. What is the situation?

Mar.11,2022

there is no configuration and log posted, so it is difficult to judge.

you can try to adjust the StartServers parameter in the Apache configuration file

.
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3cd62-2c34c.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3cd62-2c34c.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?