Skip to main content


Slow photo requests / inbox requests


Hi !Friendica Admins ,

I'm currently tracing down performance issues, I' currently suffering from on my nodes opensocial.at and friendica.me .

It seems like the main performance problems are

  • delivering photos
  • [code]/inbox/code] requests


You can see some peeks and some long runners here:

The long runners (10sec) are the /inbox requests, the peaks are delivering photos after opening conversations, network pane, ...

Do you have any hints how I could improve these two types of requests?

The database is currently using ~50GB RAM, I set them as high as possible.

Friendica Admins reshared this.

Unknown parent

Philipp Holzer
@Michael Vogel @Philipp Holzer why is it necessary to have the folder outside of the web folder?

Friendica Admins reshared this.

Unknown parent

Philipp Holzer
@Michael Vogel @Philipp Holzer is the avatar cache necessary for the workers too or just for the frontend app?

Friendica Admins reshared this.

Unknown parent

Philipp Holzer
So I do need to redirect only the /photo/contact route for the avatar cache, don't I?

Friendica Admins reshared this.

Unknown parent

Philipp Holzer
I think I got it. I try it with my friendica.philipp.info node first and check it :-)

Friendica Admins reshared this.

Unknown parent

Philipp Holzer

seems to work : friendica.philipp.info/avatar/…

This image is now served by a completely different nginx than the frontend nginx . Because it's stateless, I'm now able to start more nginx for "just" serving stateless static content!

Brilliant!

Friendica Admins reshared this.

Unknown parent

Philipp Holzer
currently, "movetoavatarcache" is running on my node :-) 17000 from 59000 finished ;)

Friendica Admins reshared this.

in reply to Philipp Holzer

Hi, after moving all contact images to avatar/, there are still a lot of long running requests, see the image above. Do you have any idea? The overall CPU/RAM is on a normal state.

Friendica Admins reshared this.