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


Federated Pages on Instance insanly slow since yesterday


Hello dear Friendica Support, Friendica Developers and Friendica Admins,
since yesterday the federated pages of my instance are infinitely slow (/community, /network).
I looked at everything in detail and tried everything possible and impossible.
I have reconfigured the database, moved the profile pictures from the database to the file system, reconfigured PHP, etc. All this did not bring any improvement.
None of this brought any improvement.
There are no abnormalities in the PHP, Apache and Mysql log files.
The slow build-up only occurs on the federated pages, i.e. where there is really a lot going on.
There, one PHP process (of many) always hangs on about 90% CPU (per user) until the page is displayed, which can take up to 2 minutes.
The load average is around 3-5%.
Does anyone have similar experiences, or is my hoster simply failing?

Any help would be appreciated :)

!Friendica Support !Friendica Admins !Friendica Developers


Friendica Developers hat dies geteilt.

Als Antwort auf Damien Goutte-Gattat

@Michael Vogel @Raroun Not wanting to speak too fast, but after upgrading to today’s 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. 😀

Friendica Developers hat dies geteilt.

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… o_O

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”). 😁

Friendica Developers hat dies geteilt.