Memory exhaustet at rendering conversations
Hello and good morning dear Friendica developers.
I would like to ask for your help.
As already described in this post, the community pages on my instance don't work anymore or take up to 3 minutes (rendertime) to load.
Since there were no error messages in the logs and I can also exclude all other dependencies known to me by now, I tried to find out what code is being processed in Friendica at the time of rendering. Via stacktraces and some other tricks, I found out, that during the "loading time" of the community pages the memory usage of the PHP process increases enormously.
The memory variables are set high on my instance because the system has a lot of ram, that's probably why no error was logged.
I set the PHP variable Max-Memory to one gigabyte and I got finally an error message:
[17-Nov-2022 03:52:00 UTC] PHP Fatal error: Allowed memory size of 1073741824 bytes exhausted (tried to allocate 8192 bytes) in /var/www/html/src/Content/Conversation.php on line 1069
Can any of you please help me? I can't tell if it's the code or something is going round in circles in the database somewhere, but the instance has been nearly unusable for days.
I would be really grateful for help.
!Friendica Developers
Friendica Developers hat dies geteilt.
Raroun
Unbekannter Ursprungsbeitrag • •!!!THANKS!!!
Friendica Developers hat dies geteilt.
Damien Goutte-Gattat
Als Antwort auf Raroun • • •Raroun mag das.
Friendica Developers hat dies geteilt.
Damien Goutte-Gattat
Als Antwort auf Damien Goutte-Gattat • • •develop
branch (which of course includes the fix aforementioned), for now I am no longer observing the high load and overall slowness I had experienced when I first tried the 2022.10 release. 😀Raroun mag das.
Friendica Developers hat dies geteilt.
Damien Goutte-Gattat
Als Antwort auf Damien Goutte-Gattat • • •@Michael Vogel @Raroun I want to add that I am quite amazed at the difference a one-liner commit can make…
Seems to me like a good example of the old joke about the engineer who bills $10,000 for fixing a device by adding a single screw (“$1 for adding the screw; $9,999 for knowing where to add it”). 😁
mögen das
DPoi und Raroun mögen das.
Friendica Developers hat dies geteilt.