Hostgater shared hosting cpu usage problems - wordpress

I have shared webhosting and sometimes i go over the max allowed cpu usage once a day, sometimes two or three times. but i cant really narrow it down to anything specific.
I have the following scripts installed:
wordpress joomla owncloud dokuwiki fengoffice
before i was just running joomla on this hosting package and everything was fine, but i upgraded to have more domains available and also hosted other scripts. now like wordpress, owncloud and so on.
but no site has high traffic or hits. most of the stuff is anyway only used by me.
i talked to the hostgator support team and they told me there is a ssh command to monitor or watch the server and see whats causing the problem.
the high cpu load just happesn for a very short peak, because everytime i check the percentage of cpu usage in the cpanel its super low. the graph shows me the spike, but it looks worse than it really is, because the graph gets updated only every hour, and that makes it hard to narrow it down...
i am new to all this. can somebody help me to figure this out?
BTW:
I hope this question is fine now here, kinda dont really understand this plattform yet...

Just so you have more information, I to host many websites with HostGator using a reseller/shared account. The performance of your site is most likely not an issue, and is related more to HostGator's new servers and it's poor MySQL performance. None of my WordPress sites had issues for years, despite high traffic/plugins etc. Fast forward to late 2013 after EIG purchased HostGator (and others like BlueHost) and the performance on the "new more powerful" servers is anything but. Limits on CPU and processes are more aggressive, and while outright downtime isn't an issue, the performance during peak hours is exceedingly poor. Sites which rely on MySQL databases all suffer from poor performance and no amount of caching or plugin optimization will help (I should know as I spent months reviewing my sites trying many optimizations).
My advice: Find another web host and/or upgrade your hosting to a VPS that can scale based on your needs.
I moved my higher traffic/important clients to WPEngine. The speed difference and quality support is massive.

Related

Shared hosting High ram and I/o usage. Cpanel solution?

I have a WordPress install with godaddy. Often times I see that the site has high memory usage and i/o usage.
I am not an expert when it comes to web servers but I do get by with some level of knowledge.
I have not installed any new plugins that might have caused this.
I have the following questions:
Is there a way I can monitor what is consuming memory and i/o with cpanel?
I do have google authenticator plugin installed that will block more than three failed password attempts. Is the plugin sufficient in preventing brute force attacks?
I am sure that not good for you.This good tips for you. Cloudflarethat's good for your (free or premium), That will be reduce your problems (Free SSL, Improve speed, Security, manage DNS, Caching (will reduce your problem), Blacklist/ Whitelist IP, etc) .
and other tips is:
Excessive load times can harm your website in more ways than one. There are quite a few ways to improve your site’s speed but caching has the greatest impact.
With the above in mind, going to evaluate the performance of the top five caching solutions for WordPress to help you determine which one is truly the best (not just the fastest).
Here’s the lineup: WP Rocket, W3 Total Cache, WP Super Cache, WP Fastest Cache, and ZenCache.
The last solutions: Upgrade your hosting
I hope this help full

How to boost site performance for ONE day?

I consult with folks on a Wordpress site that is used for an event held once each year. The site runs fine throughout the year. Cache plugins in place, etc...The site is hosted on Hostgator.
However, on the day of the event- usage is off the charts and the site becomes unusable.
Last year I used CloudFlare, which helped. Any other suggestions?
There is only so much software can do to improve performance. This sound like the server your site is running on is not able to handle all the requests. I suggest you upgrade your server/VPS only for the amount of time that you suspect that huge amount of load, instead of looking into software solutions.
Especially since you only expect this to happen once a year, I think it is financially more appealing to increase server speed for a short period of time, which may cost some money, but will terminate the problem you're facing.
Trying to resolve this only with software, you might not ever be able to reach the results of upgrading your server and it can take a lot of time and research to streamline everything for the best performance.

Hosting/Server for high traffic website

What setup would you recommend for Wordpress website with average daily traffic ~250,000 sessions per day (~130K unique users). In peak hours we can get ~25K users in hour, and non peak ~10-17k per hour.
Monthly bandwidth is ~14TB.
I'll be happy to hear suggestions on what is the best setup:
Note: it should be cpanel server (apache)
Server - cloud or dedicated (all except google cloud and amazon)
CPU/Memory/etc ?
CDN ?
Apache/MySQL specific setup?
High availability?
Any other suggestion
Very appreciated for any advice
It depends what type of traffic do you have?
Is this just one page traffic (bringing referrals from sources like social media, forums, blogs, etc..). Why i'm asking this?
Yes! it really matters.....
Traffic::
Usually traffic brought from sources, browse a landing page there's wouldn't be any unique counts, so in that case your cache plugins can't spend more effort in terms of performance. If users are giving you nice no of pageviews in that case your cache plugin will manage the performance and will give you the best result.
Hosting:
Definitely that you cannot run your website through any shared hosting OR WORDPRESS HOSTING if you are going to have this much of volume. Don't consider having a VPS/Dedicated through any hosting company, it doesn't matter how big that hosting company is. Third party hosting companies will never give you prompt support and will never even guarantee you that if you bring that much of traffic, it will remain as stable as in fully working condition. so consider having VPS/Dedicated hosted in Data Center not through any third party vendors. Try if you could get Cloud VPS OR cloud solution as a service part.
CDN:
If you have good budget then consider using Amazon, Avg. budget use Cloudflare OR MaxCDN.
Hardware: 16GB Ram, 8 Core CPU, 60GB (If you are not planning much updates on your website), 20Gbps Network, 25TB Bandwidth. VPS would do your job and can manage the traffic you considering. I don't think so you should go for dedicated.
Setup & Configuration:
Install Debian 8, Virtualmin (Free) + Nginx and optimize it to use for high traffic. Do not install WHM, don't do this mistake, if you do then you might need premium support to fix issues every single day. Virtualmin is light panel and wordpress is it's specialty. Nginx has ability to deliver high traffic website, mysql optimization, cache management and it can deliver what you looking at.
Themes & Plugins:
Try to go with light wordpress theme, install minimal plugins. Must have plugins are Nginx Helper & W3C Total cache.
There's lot of things on this to talk about, but i think these are important once and should be helpful. Hope my explanation helps you to understand! If you have any doubt feel free to ask...
Attached is the proof of what i explained. This server has configuration of 4GB Ram, 4 Core CPU & Cloud VPS

Amazon Web Services EC2 Instances Become Painfully Slow From Time to Time

I am using the free tier for now and have noticed that the servers on which I host a couple of Wordpress sites become periodically and painfully slow to respond if I access the sites through the browser. Accessing the admin of the site becomes impossible. That said, I can still quickly SSH to the servers, if needed.
What can be causing such a behavior? I have seen short bouts of this previously but the current one has lasted for over two days. I have tried recreating the servers, rebooting them, etc. Needless to say, unless I am doing something wrong, it is making me question the decision to try AWS for these projects.
This is from the amazon site:
T2 instances accrue CPU Credits when they are idle, and use CPU credits when they are active. T2 instances are a good choice for workloads that don’t use the full CPU often or consistently, but occasionally need to burst
Worpdress sites are CPU intensive and not suiteable for this kind of environment. I have tried it before and learned quickly that t2.micro is good for two things. Light development or cached html content. Anything beyond that you are asking for trouble.
You need to upgrade beyond the free tier if you want some results. Otherwise convert your site to a simple html website, or cache the heck out of your content.

IIS memory leak detection techniques

I have a server running about 100+ WordPress sites of varying complexity and traffic volume. The OS is Windows 2003 Server running IIS 6 with the domains being managed via HELM. The thing is there are times when sites stop responding due to insufficient memory, but it has been difficult to track the particular site(s) or other culprit that could be the cause. What makes it even more complicated is that the problem will disappear for weeks and then show up again. The most recent solution was to migrate the sites to a higher capacity server and this seemed to have worked for some time.
What tools/techniques can I use to track down the problem while keeping in mind that this is a production server?
Tess Ferrandez has a number of great articles about tracking down memory pressure and process hangs in IIS using WinDbg and DebugDiag:
If it is broken, fix it you should
Whilst the techniques often focus on ASP.NET, many of the techniques can be applied to other languages. The only problem is that because PHP is written using native code your WinDbg-fu will probably need to be fairly good.

Resources