Page 1 of 1

why does php stop every day?

Posted: Thu 12. Jan 2023, 14:43
by alamis
After restarting the server everything works. And there is disk space. 16g

Debian 11
1 core
1 g memory

-----------

Admin-Edit: The user has received a warning due to repeatedly disregarding the forum rules.

Re: why does php stop every day?  [SOLVED]

Posted: Thu 12. Jan 2023, 14:49
by Jolinar
alamis wrote: Thu 12. Jan 2023, 14:43 1 g memory
You don't have enough RAM. It looks like OOM kill.

Re: why does php stop every day?

Posted: Thu 12. Jan 2023, 15:20
by BasHeijermans
You probably need to shrink memory consumption by MariaDB and other processes.
Turn off the Virus-scanner is a big memory-saver too.

Re: why does php stop every day?

Posted: Fri 13. Jan 2023, 20:56
by alamis
Jolinar wrote: Thu 12. Jan 2023, 14:49
alamis wrote: Thu 12. Jan 2023, 14:43 1 g memory
You don't have enough RAM. It looks like OOM kill.
You right thanks 😊

Re: why does php stop every day?

Posted: Fri 13. Jan 2023, 21:02
by alamis
BasHeijermans wrote: Thu 12. Jan 2023, 15:20 You probably need to shrink memory consumption by MariaDB and other processes.
Turn off the Virus-scanner is a big memory-saver too.
You right, no problem with 2g 👌🏽
but how did you figure it out?

Re: why does php stop every day?

Posted: Sun 15. Jan 2023, 14:18
by BasHeijermans
Well I did run a forum with approx 1M users on a single core 1GB ram machine back in the days.
Because servers where esive we had to find out how to use our memory effectifly to make the database run fast.
Database size was about 1.5GB in size.

Those days the Mysql server used a keybuffer was only 8MB, made our forum crawl.

So the first I did was see how much MariaDB and AV-database where using.

As memory isn't expensive these days, they are very generous with the defaults and easily consume 1 or 2GB.

As such I needed to schrink them down, and it runs happily with far less memory :lol: