Delay loading /network
!Friendica Support
Hi everyone, I have a big problem on my Friendica installation , When I connect to niwego.com/network , it takes 30/40 seconds to load the page,I chose to display only 10 post on the page, plus when I scroll it lags a lot.
I installed the plugin rendertime , this is the result , it has become almost unusable
Database: 3.619/0, Network: 0, Rendering: 40.65, Session: 0, I/O: 0.01, Other: 0.27, Total: 44.54
Class-Init: 0.005, Boot: 0.004, Init: 0, Content: 44.524, Other: 0.017, Total: 44.55Ubuntu Server 24.04 LTS
This is the third installation of Friendica, on the others I have the delay, but on this installation (my personal one) it is too much.
Friendica runs on a virtual machine with 8 Cores and 8Gb of memory
Some suggestions , thanks...
Scifijunkie
in reply to Anomaly • • •Scifijunkie
Unknown parent • • •Anomaly
in reply to Scifijunkie • •Friendica Support reshared this.
Scifijunkie
in reply to Anomaly • • •Scifijunkie
in reply to Anomaly • • •Well, I did a rather crazy thing. I looked to see if I could find something like htop but for hard drives. I found something called iotop. Now after running it I noted that the total and current disk read was going all over the place. I went ahead and tried to load /network while iotop was running and it would spike to 20 M/s. So I ran e4defrag and let it sit for a while. It finely settled to about 200 K/s. I went ahead and tried to load /network again. It spiked to about 2 to 4 M/s. I saw that some people reported that PeerTube was doing a slow down to so I loaded up my PeerTube which defaults to me to videos just on my PeerTube node. It spiked to 40 M/s.
Now the only real difference between the two to me is that I use lscr.io/linuxserver/mariadb:10.11.5-r0-ls123 when it comes friendica:stable and I use postgres:15 when it come to chocobozzz/peertube:production-bookworm. So it makes me wounder if I need to update mariadb.
Scifijunkie
in reply to Anomaly • • •Scifijunkie
in reply to Anomaly • • •Well, it seems it's not Friendica taking out the k3s node at least not all the time. It seems that maybe PeerTube and Friendica together were taking out the k3s node they are on. Now mind you I'm just guessing at this point since Friendica still will not load /network or /community/global and PeerTube gives me the following pop-up errors now and then:
Or something to t
... Show more...Well, it seems it's not Friendica taking out the k3s node at least not all the time. It seems that maybe PeerTube and Friendica together were taking out the k3s node they are on. Now mind you I'm just guessing at this point since Friendica still will not load /network or /community/global and PeerTube gives me the following pop-up errors now and then:
Or something to the effect of "sorry can't load more vides".
It would do it on /videos/trending and /videos/recently-added.
I really don't have any spare servers I can just through together and do other tests right now. Now the spikes I noticed while using PeerTube and Friendica are on the Databases they use. That means Friendica is making mariadb spike between about 2.5 to 4 M/s and PeerTube is making postgres:15 spike between about 20 to 40 M/s.
Scifijunkie
in reply to Anomaly • • •Scifijunkie
in reply to Anomaly • • •Scifijunkie
in reply to Anomaly • • •Anomaly
in reply to Scifijunkie • •Friendica Support reshared this.
Scifijunkie
in reply to Anomaly • • •Scifijunkie
in reply to Anomaly • • •Scifijunkie
in reply to Anomaly • • •Anomaly
in reply to Scifijunkie • •I think it's a configuration issue regarding your problem , try opening a new thread on @Friendica Support and mention that you use #docker
Friendica Support reshared this.