Jump to content

Need help optimizing my forum for speed


Recommended Posts

Hey fam!

So, I just switched to 4.5.3 this week and it appears most of the kinks / bugs are worked out now.

I also upgraded to PHP 7.3 and changed the caching method to Redis.

I've noticed my forum loads slower than before the upgrade (when I was on 4.4 and using memcache). I've also had member complaints about it. 

I checked out a few other IPS forums and noticed they load lightning fast. Mine... not so much. It takes a few seconds for the pages to load. 

https://www.breatheheavy.com/exhale/

I have ads on my forum for non-subscribers, but even when viewing the forum with an ad-free account, it doesn't load quickly. Additionally, I visited some forums that also have ads on them and they load nearly instantaneously. 

Here are a few things I've noticed. For instance, there are always background processes running now. It wouldn't look like this before. These are always there now:

39113213_ScreenShot2020-09-23at8_18_06AM.thumb.png.57857c95f40051a2f790dc65f7a1afe9.png

 

A few other need-to-know items:

Data Storage Method: Redis

Cache page output for guests: 10 minutes

Task Method: Cron

Cache sidebar, header and footer blocks: 10 minutes

 

I have a pretty powerful server as well, so I do believe this is something that can be resolved on my current machine. 🤞 

I would really appreciate some help figuring out a few things I can do to help speed up performance. Thank you!


 

Related:

 

Edited by breatheheavy
Link to comment
Share on other sites

We saw a slowdown with 4.5 from 4.4 as well in testing on identical hardware as our production environment with only one user browsing (compared to hundreds on production). Also went from memcache to redis, though we switched to redis preemptively in 4.4 before upgrading.

We turned off redis caching for guests entirely (where you have 10 minutes, turn it off or set to zero), and left sessions and threadviews on MySQL. Significant performance increase when we did that. Not sure why. Disk I/O was super high for redis before we made the change.

I'd give that a try and see what impact that has.

Link to comment
Share on other sites

1 hour ago, Paul E. said:

We saw a slowdown with 4.5 from 4.4 as well in testing on identical hardware as our production environment with only one user browsing (compared to hundreds on production). Also went from memcache to redis, though we switched to redis preemptively in 4.4 before upgrading.

We turned off redis caching for guests entirely (where you have 10 minutes, turn it off or set to zero), and left sessions and threadviews on MySQL. Significant performance increase when we did that. Not sure why. Disk I/O was super high for redis before we made the change.

I'd give that a try and see what impact that has.

Thanks for the reply! 

I checked out the guest caching. It says this: 

Quote

If your site rarely has many guests online at the same time, it may take more resources to store the cache than is saved by it and so it may be better to disable it.

Thing is, we do have a lot of guests on at any given time. Am nervous this will hog resources? 

I changed the settings to what you suggest - let's see how this goes 😆 

Link to comment
Share on other sites

2 hours ago, Paul E. said:

We saw a slowdown with 4.5 from 4.4 as well in testing on identical hardware as our production environment with only one user browsing (compared to hundreds on production). Also went from memcache to redis, though we switched to redis preemptively in 4.4 before upgrading.

We turned off redis caching for guests entirely (where you have 10 minutes, turn it off or set to zero), and left sessions and threadviews on MySQL. Significant performance increase when we did that. Not sure why. Disk I/O was super high for redis before we made the change.

I'd give that a try and see what impact that has.

Ok so I did see an improvement in speed (yay!), but now the forum isn't counting views on threads (wahh).

I'm fairly sure it's because of the settings changes. Thoughts? 

1803164319_ScreenShot2020-09-23at11_26_06AM.thumb.png.e0cd255896aa1e17f4747a4f538f62bc.png

Link to comment
Share on other sites

29 minutes ago, breatheheavy said:

But how could a thread started 1 hour ago with 22 replies have 0 replies? 

I think this is a separate issue related to the background tasks you're seeing that appear to be stuck (based in the screenshot in the first post in this thread).

You might want to check cron and make sure it's correct. Have paths to php changed in your upgrade to 7.3, for example?

Edited by Paul E.
Link to comment
Share on other sites

2 minutes ago, Adlago said:

In your site have too many reasons for delay loading, but none due to IPS. See screenshots from test GtMetrix.

See this test

https://gtmetrix.com/reports/www.breatheheavy.com/Q3mXeLpf

 

 

 

Screenshot at 2020-09-23 21:53:28.png

Screenshot at 2020-09-23 21:53:11.png

Screenshot at 2020-09-23 21:52:52.png

Screenshot at 2020-09-23 21:52:30.png

Screenshot at 2020-09-23 21:52:13.png

Screenshot at 2020-09-23 21:51:40.png

Screenshot at 2020-09-23 21:50:51.png

😩 

18 minutes ago, DawPi said:

Not sure. Send ticket and they check your board. 🙂

Just submitted a ticket!

Link to comment
Share on other sites

22 hours ago, breatheheavy said:

😩

I can understand that you need ads to survive, but your website is insane.

I disabled the built-in Enhanced Tracking Protection in Firefox (81.0b8) and reloaded your website, but I had to abort after close to two minutes, with 530 (!) requests and 11.32 MB transferred. This is nothing but extreme, and obviously one of the (if not the only) reasons as to why the website feels slow. With the tracking protection enabled, the website stops loading after 20 seconds, with 61 requests and 7.46 MB transferred.

Compare this to my own community: 1.91 seconds, 42 requests, and 2.47 MB transferred. Or the Invision Community forums: 3.32 seconds, 52 requests, and 3.35 MB transferred.

I'm probably not in your preferred audience, but I would never in my life use your website with the amount of ads and trackers used.

Disclaimer: I'm currently using a 4G LTE connection, but the number of requests and MB transferred would be the same with high speed Internet.

Link to comment
Share on other sites

1 hour ago, Runar said:

I can understand that you need ads to survive, but your website is insane.

I disabled the built-in Enhanced Tracking Protection in Firefox (81.0b8) and reloaded your website, but I had to abort after close to two minutes, with 530 (!) requests and 11.32 MB transferred. This is nothing but extreme, and obviously one of the (if not the only) reasons as to why the website feels slow. With the tracking protection enabled, the website stops loading after 20 seconds, with 61 requests and 7.46 MB transferred.

Compare this to my own community: 1.91 seconds, 42 requests, and 2.47 MB transferred. Or the Invision Community forums: 3.32 seconds, 52 requests, and 3.35 MB transferred.

I'm probably not in your preferred audience, but I would never in my life use your website with the amount of ads and trackers used.

Disclaimer: I'm currently using a 4G LTE connection, but the number of requests and MB transferred would be the same with high speed Internet.

I feel you. I am trying to convert the culture of my website away from ad revenue to subscriptions, but it's difficult. People believe the Internet should be "free." 

I am only using two ad networks. One for the footer ad, another for the banner ads. Not sure what else I can do to minimize the amount of ads. The learning tech with the banner ads displays X amount of ads based on the user's information (like location, whether they visit frequently or not etc). 

Link to comment
Share on other sites

8 hours ago, breatheheavy said:

I am only using two ad networks. One for the footer ad, another for the banner ads. Not sure what else I can do to minimize the amount of ads. The learning tech with the banner ads displays X amount of ads based on the user's information (like location, whether they visit frequently or not etc). 

This is verbatim what the sales rep I spoke with recently told me.... Ezoic?

Is the logic such that it detects you being in the fifth circle of hell and then inundates you with the non-popup version of popup ads?

Edited by Paul E.
Link to comment
Share on other sites

You have 18 ads on your main page, I'm shocked that you have any traffic, as mentioned nobody wants to visit a site like this in 2020.  If they do they will have ad blocker up and running, which defeats your purpose.  You would be better off wit 3-4 ads tops per page. Not only would your site load better, but you may get an actual few users who stick around.  

Link to comment
Share on other sites

1 hour ago, Paul E. said:

This is verbatim what the sales rep I spoke with recently told me.... Ezoic?

Is the logic such that it detects you being in the fifth circle of hell and then inundates you with the non-popup version of popup ads?

Yes Ezoic 💀

32 minutes ago, Rhett said:

You have 18 ads on your main page, I'm shocked that you have any traffic, as mentioned nobody wants to visit a site like this in 2020.  If they do they will have ad blocker up and running, which defeats your purpose.  You would be better off wit 3-4 ads tops per page. Not only would your site load better, but you may get an actual few users who stick around.  

Yea I feel you. 18 tho?! Wow I usually don’t see that many.

Ezoic works by creating multiple placements on the page, and then their learning tech decides how many to deploy based on the user. Idk idk

Link to comment
Share on other sites

I've visited your site a few times, and I've never seen an ad before, then I realize that they were probably being blocked by my ad blocker (uBlock Origin), so I turned it off to check.....


scared toys GIF by Dark Igloo

There are quite a bit of ads.

By the way, your site loaded pretty fast for me, I didn't notice any major issue. I will message you back later when I have more time to write, with some ways you could possibly earn money  without using any ads. Congrats on the ipsfocus purchase. I use Chameleon Pro myself. @Ehren is the best. You are definitely in good hands.

Edited by SC36DC
Link to comment
Share on other sites

1 hour ago, breatheheavy said:

Ezoic works by creating multiple placements on the page, and then their learning tech decides how many to deploy based on the user. Idk idk

You don't need to answer this, but how much do you make from Ezoic? Is it worth it? 18 ads is a lot, but if they make you a lot of money I can understand (though not agree with) why you don't want to immediately remove them or replace them with paid subscriptions.

Link to comment
Share on other sites

10 hours ago, SC36DC said:

I've visited your site a few times, and I've never seen an ad before, then I realize that they were probably being blocked by my ad blocker (uBlock Origin), so I turned it off to check.....


scared toys GIF by Dark Igloo

There are quite a bit of ads.

By the way, your site loaded pretty fast for me, I didn't notice any major issue. I will message you back later when I have more time to write, with some ways you could possibly earn money  without using any ads. Congrats on the ipsfocus purchase. I use Chameleon Pro myself. @Ehren is the best. You are definitely in good hands.

Haha.

I would LOVE and welcome any feedback / advice to help me shift away from the ad revenue model. That would be greatly appreciated. 

Still waiting for @zayed to update his awesome Enhanced AdBlock Blocker plugin for 4.5 😇 

And yea my users really like the Chameleon theme thus far! And the support has been awesome @Ehren

9 hours ago, Runar said:

You don't need to answer this, but how much do you make from Ezoic? Is it worth it? 18 ads is a lot, but if they make you a lot of money I can understand (though not agree with) why you don't want to immediately remove them or replace them with paid subscriptions.

I make enough to work for myself full-time, however it's not generating a huge profit like I want. 

I think if I told people it was subscription only, most would just disappear. I would basically need 1000 subscribers at $3 a piece to know it was worth my while. 1000 people out of the hundreds of thousands that visit per month doesn't sound too difficult to get, but from my experience it has been 😆 

I would LOVE subscription only because I find the ad model to be unreliable. Some months are amazing, some are awful. Very unpredictable. I would love something more stable. 

Link to comment
Share on other sites

Speed is a constant alert we receive as well from Google's Webmaster tools (and Analytics). I'm wondering how much of this is related to the default theme. Looking at some of the themes available from other providers, it seems that they score higher on things like PageSpeed Insights.

I'm sure ads are an issue for @breatheheavy, yet I'm not sure they are the only issue, and lots of sites with ads are able to load without issues. Following this conversation as I'm sure there's lots of us that could have improvements.

I've debated trying mod_pagespeed, yet am a bit reluctant as precompiled *.deb nginx versions aren't available direct from the project.

Link to comment
Share on other sites

19 minutes ago, Paul E. said:

I've debated trying mod_pagespeed, yet am a bit reluctant as precompiled *.deb nginx versions aren't available direct from the project.

I ran mod_pagespeed for quite some time, with varying degrees of success. I had to main issues: The issue with WebP images I mentioned in the WebP topic, and an issue with static files seemingly deleting themselves at random. I tried to get help from the official mailing list, and even offered to pay for assistance, but no one managed to solve the issue. In the end I spent a lot of time making it work but it still felt like a hack, so I turned it off completely and went back to Cloudflare.

Link to comment
Share on other sites

13 minutes ago, Paul E. said:

That's exactly my aversion to it. However, without a doubt, IPS is too slow. We're using Cloudflare now, yet even there, it's still 2-3 seconds.

😩 

Yea even with all my ads turned off, it still takes a few seconds for the page to load. I've aiming for less than a second. Is that possible 😏 

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...