Database Disconnection Problem

I have checked the server logs and found that the processes are getting killed again due to high memory usage.



======================

Aug 18 05:48:51 server systemd[1]: mariadb.service: main process exited, code=killed, status=24/XCPU

Aug 18 14:58:33 server systemd[1]: mariadb.service: main process exited, code=killed, status=24/XCPU

Aug 19 00:00:06 server systemd[1]: lfd.service: main process exited, code=killed, status=9/KILL

Aug 19 00:42:50 server systemd[1]: mariadb.service: main process exited, code=killed, status=24/XCPU

======================



You may please try to optimize the website processes to reduce the resource consumption .

How can I solve this problem ?