why does php stop every day?  [SOLVED]

Have you discovered a bug? Tell us about it.
Post Reply
alamis
Posts: 21
Joined: Sat 8. Oct 2022, 21:29

why does php stop every day?

Post 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.
Attachments
E5D24ADA-4E67-419F-B513-03D3EDEF1056.png
User avatar
Jolinar
Community Moderator
Posts: 3559
Joined: Sat 30. Jan 2016, 07:11
Location: Weimar (Thüringen)
Contact:

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

Post by Jolinar »

alamis wrote: Thu 12. Jan 2023, 14:43 1 g memory
You don't have enough RAM. It looks like OOM kill.
Wenn jemand inkompetent ist, dann kann er nicht wissen, daß er inkompetent ist. (David Dunning)

Data Collector für Community Support
___
Ich verwende zwei verschiedene Schriftfarben in meinen Beiträgen /
I use two different font colors in my posts:
  • In dieser Farbe schreibe ich als Moderator und gebe moderative Hinweise oder begründe moderative Eingriffe /
    In this color, I write as a moderator and provide moderative guidance or justify moderative interventions
  • In dieser Farbe schreibe ich als Community Mitglied und teile meine private Meinung und persönlichen Ansichten mit /
    In this color, I write as a community member and share my personal opinions and views
User avatar
BasHeijermans
KeyHelp Translator
Posts: 158
Joined: Mon 20. Jun 2022, 12:01
Location: Heppen Belgium
Contact:

Re: why does php stop every day?

Post 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.
Greetings Bas.

Ik heb KeyHelp naar het Nederlands vertaald, contacteer me als er translatie fouten zijn.
(I have translated KeyHelp into Dutch, contact me if there are translation errors.)
Next version 24 of KeyHelp 100% translated.
alamis
Posts: 21
Joined: Sat 8. Oct 2022, 21:29

Re: why does php stop every day?

Post 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 😊
alamis
Posts: 21
Joined: Sat 8. Oct 2022, 21:29

Re: why does php stop every day?

Post 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?
User avatar
BasHeijermans
KeyHelp Translator
Posts: 158
Joined: Mon 20. Jun 2022, 12:01
Location: Heppen Belgium
Contact:

Re: why does php stop every day?

Post 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:
Greetings Bas.

Ik heb KeyHelp naar het Nederlands vertaald, contacteer me als er translatie fouten zijn.
(I have translated KeyHelp into Dutch, contact me if there are translation errors.)
Next version 24 of KeyHelp 100% translated.
Post Reply