Troubleshooting slow site.
-
Hello,
I run a medium sized forum on wordpress on a VPS account. I have been having issues with load times. During the night it runs super duper fast. During mid-day (peak hours) it gets crawling slow and sometimes unresponsive.
My forum software is using bbpress and buddypress plugins among a few other plugins such as wp-u-like (for liking posts) and wp-monalisa for smilies. I have about 16 plugins total that includes plugins like w3totalcache, wordfence, wp smush and other little helper plugins that help make the forum, more like a forum for instance showing a user online or their timezone instead of wordpress default time zone and the ability to block other users.
The theme is a custom theme that I built. I did build a large user drop down that uses php and hooks like bp_loggedin_user_domain() and bp_loggedin_user_avatar() and several more which make it function like a twitter or facebook dropdown menu showing your information and helpful links to edit your profile and ability to logout. The php code is built into the functions file and called through the header. It isn’t an extremely large code but it isn’t small either. It’s around 40-50 lines de-compressed. I figured I would mention that in case that has some weird thing to do with it.
I have been working with my hosting provider to figure out this issue. According to the host my website should run perfectly fine on the VPS that I am on. They said there is no hangups or bottlenecks or errors or anything on their end that is causing the issue. They said my database looks fine and everything is using gzip and the server is also using opcache.
The database is fine and is optimized. Verified by the host as well.
We removed everything from the website plugins, themes everything and started from scratch. The first thing we did was bring the wordpress files back to the account and did a gtmetrix test. The site ran flawless and so fast. Next we added back the theme and ran tests. Same results. We added the forum plugin back first. Of course adding the forum back with 8600 members and 100,000+ posts on it, it did get a tad slower with a 1-3 second page load. Which I can expect and understand. Not to mention the site gets around 200,000+ page impressions a day and around 50,000+ page views a day. So the traffic is a little bit heavy. After this we proceeded to add the rest of the plugins back into place. After that, the site began to get slow again. So we tested switching the theme and disabling the plugins. Switching the theme caused the site to still load slow.
My host went in and looked at the memory. This is where the problem is. The memory is being used up. Most likely from Php. So, I’m not a backend developer or even a front end developer per say. I do know how to make a custom wordpress theme but that is the extent of my knowledge. I’m more of a designer. I’m not totally familiar with php except for a few things like the wrapping code for php and I know how to use echo and I’m pretty mean with the copy and paste haha!
I’ve scraped my theme pretty well in that I am only using what I have to use. I’ve setup most of my plugins to either remove css and javascript if it isn’t needed or move it to the bottom of the page. There is still some plugins that will break if the javascript is loaded in the footer instead, so those few files are in the header. All of the scripts however are hosted on the server. The only scripts that aren’t are from google. I’ve also increased the memory limit via wordpress.
Also my images are compressed using wp smush.
So I’m not sure what to do next, what steps to take and how to fix it. So if anyone can provide some insight that would be so great and appreciated!
Thank you.
The topic ‘Troubleshooting slow site.’ is closed to new replies.