When I tried to verify the status of my server (which I haven’t worked on for at least a 2 weeks to a month) it took 5.1 seconds for the initial waterfall of the site to start loading. It took 8.9 minutes for the entire home page to load. Normally this process is a second or two I do not have data to compare I just know its not minutes for it to load.
How can I evaluate my server to see what the problem is?
I am running Ubuntu 18.04.3 with Apache2. I do not have much experience troubleshooting what could cause my server to act like this. I had thought to restart my droplet but Id prefer to try and evaluate what is going on.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Hi @stoi2m1,
It seems like your server was under heavy load. My best bet would be you had your Apache Workers full. Having said that, this is just an educated guess so it might not be true.
Firstly, is your droplet still acting as you’ve described, is your website slow or is it loading properly now? If the issues are still being experienced it would be easier to actually pinpoint them. Now, let’s assume you see your website acting strange again. SSH to your droplet
ssh root@XXX.XXX.XXX.XXX
In there first check your load. Type in the command
w
See if it’s load. On the first line, you’ll see the load you are experiencing now, last 10 minutes and last 15 minutes. If there is load, you’ll need to see all your processes on the Droplet. You can check this by running htop or top. If you see too many httpd processes then it’s Apache for sure.
Now, you can see if the traffic is actually legit or not so much. If the traffic is legit, you can increase your Apache workers so that you can have more people on your website. If it’s malicious traffic, for instance, traffic from countries that shouldn’t be using your website, then you would be good to get some service like fail2ban which will help with them.
Regards, KFSys
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.