Zum Inhalt der Seite gehen


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.55

Ubuntu 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...

Dieser Beitrag wurde bearbeitet. (3 Monate her)
Als Antwort auf NeMyS

Well, I keep getting either 502 Bad Gateway or 504 Gateway Time-out on my node for anything other than local stuff on my node or go through my /profile. The only Plugins/Active addons I have installed are blockbot and notifyall. My Friendica node runs on one of my k3s nodes and is the friendica:stable Image.
Als Antwort auf Scifijunkie

I solved it by blocking the domain *activitypub-troll.cf, I had a lot of spam which slows down the network, it works fine now.

Try to reduce the amount of posts per page to around 10, i had this error in the past and i solved it this way thanks to @Michael Vogel

Als Antwort auf Scifijunkie

There are a lot of reasons for these messages. It could be performance related. In this case you should try to enable the rendertime addon to check where the performance bottleneck is.

If the times are okay, but you still have got timeouts, then the problem can also be your webserver or php. Then you could check for the maximum number of connections. You should consult your logfiles prior to check if the limits are reached.

Als Antwort auf Scifijunkie

This is meant for the lines in the callstack. Since we are looking for performance issues, you can enter something like 0,1 in it. Then every value below 0,1 will be omitted.
Als Antwort auf NeMyS

Hmm, it is weird that rendering takes so long. Normally the bottleneck is the network or database.
Als Antwort auf NeMyS

Can you deactivate the advancedcontentfilter addon? It would be interesting to see if this improves the performance.
Als Antwort auf Michael Vogel

Als Antwort auf NeMyS

It would be interesting to see if this improves the performance.

That's it, loading /network

Database: 0.127/0, Network: 0, Rendering: 0.04, Session: 0, I/O: 0, Other: 0.05, Total: 0.21
Class-Init: 0.006, Boot: 0.004, Init: 0, Content: 0.203, Other: 0.003, Total: 0.216
Als Antwort auf NeMyS

@𝔫𝕖𝚖ƴ᥉ @Michael Vogel @Scifijunkie Please repeat it again, maybe coincidence that you get better rendering time without the addon. This means that you enable the addon again, try to reload a few times in a row and then disable the addon again and try to reload in a few times again. So you can exclude coincidences like other programs on your server has maybe caused it.

Question aside: Is your server a "shared server", means you don't have root access to it or does it belong to you alone?

Als Antwort auf Roland Häder

@Roland Häder Since I installed Friendica on the root domain, the other one explore.ni.. is almost always offline and the virtual machine Off
Do you want me to delete the domain *activitypub-troll.cf from Server-block list And disable plugins and see how long it takes for /network to load? I currently have no latency issues, so far everything is working fast and as it should since i blocked the domain i listed above.
I have access to the entire server, and I have root privileges , It is not a shared server.
Thanks
Als Antwort auf NeMyS

@𝔫𝕖𝚖ƴ᥉ @Michael Vogel @Scifijunkie Okay, I just wanted to exclude this, that maybe other users are causing this. But since it runs now pretty fast, then we can exclude external factors. The repeated tests (still with all other in place) are should make sure that the slowdown was caused temporary and not on every request.
Als Antwort auf NeMyS

Can you perform select count(*) from advancedcontentfilter_rules;? I'm unsure where this problem originates.
Als Antwort auf Michael Vogel

@Michael Vogel
you told me to perform select count(*) from advancedcontentfilter_rules; , do i need to create a new rule?
Als Antwort auf NeMyS

I meant that you should perform that SQL command, so that we see the number of lines in that table.
Als Antwort auf Michael Vogel

@Michael Vogel

Ah ok sorry I got confused , Just to be clear, I installed the plugin a while ago, but never configured it , not yet
Here he is

MariaDB [MYFRIENDICADB]> select count(*) from advancedcontentfilter_rules;
+----------+
| count(*) |
+----------+
|        0 |
+----------+
1 row in set (0.001 sec)
Als Antwort auf NeMyS

Als Antwort auf NeMyS

Als Antwort auf Scifijunkie

When I used CloudFlare Proxy in the past I remember creating a rule (In the CloudFlare panel) because my application (nextcloud) gave me slowness problems and sometimes it was not possible to reach the site. I'm not 100% sure but maybe you have the same problem I had in the past
Als Antwort auf NeMyS

Well, it's back to not loading /network or /community/global and that's with CloudFlare set to DNS only when it comes to Friendica. The odd thing is that when I try to go to /network or /community/global it takes out that entire node of my k3s cluster and it has three nodes. I could see if there is an update to k3s and see if that does anything.
Als Antwort auf NeMyS

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.

Als Antwort auf NeMyS

Well, I updated mariadb from lscr.io/linuxserver/mariadb:10.11.5-r0-ls123 to lscr.io/linuxserver/mariadb:10.11.8-r0-ls153. It still spikes but between about 2.5 to 4 M/s and it still takes out the k3s node it's on after a while. At least it seems to still take out the k3s node it's on anyway. That is when I try to load /network.
Dieser Beitrag wurde bearbeitet. (2 Monate her)
Als Antwort auf NeMyS

Als Antwort auf NeMyS

Well it seems that @Roland Häder may have been right about that I may have inadvertently caused my own problem. I switched my Interface setting in my Pihole from "Bind only to interface enp3s0" to "Allow only local requests" thinking it would address the "Maximum number of concurrent DNS queries reached" warning better than just upping the concurrent DNS queries. Well it worked by making the warning but I think it might have created the problem of the /network or /community/global not loading for some resone. I say that I switched my Pihole back to "Bind only to interface enp3s0" and I'm having no problems loading either /network or /community/global. I have not looked to see if the spikes still happen or not though when it comes to the mariadb Database it uses. Just a heads up for other admins that use Pihole for DNS inside their networks.
Dieser Beitrag wurde bearbeitet. (2 Monate her)
Als Antwort auf NeMyS

Well it seems that /network or /community/global are not wanting to load again and I'm fresh out if Ideas of what to try now.
Als Antwort auf NeMyS

Well I upgraded all of my servers to 24.04.1 and seems that did the trick for me. That would lead me to believe that there may have been a problem with 22.04.1 in the world of Ubuntu. So it might be worth upgrading your distro to the latest version.
Als Antwort auf Scifijunkie

Well, I have never installed #Friendica in the #container, I have always used a dedicated VM, I have only had some small problems, even with old versions of Ubuntu Server . I'm not a Containerization expert, but it's not easy to troubleshooting

Diese Webseite verwendet Cookies. Durch die weitere Benutzung der Webseite stimmst du dieser Verwendung zu. https://inne.city/tos