Hi Everyone
I’ve got InterWorx CP installed and is still my preferred CP for managing websites over the other CPs that exist.
Recently I started hosting another website through SiteWorx that receives 32K unique daily traffic.
The other SiteWorx accounts don’t seem to be impacted but this particular one have I have started hosting seems to crash a lot or run very slowly. I ran the “System Health” but couldn’t see anything in there.
Distribution: CentOS Linux release 7.6.1810 (Core)
Operating System: Linux 3.10.0-957.21.3.el7.x86_64 (SMP)
CPU: [12x] 2200.00Mhz Intel® Xeon® CPU D-1531 @ 2.20GHz (9216 KB Cache)
System Memory: 31910.51 MB
Load Average: 1.49 1.27 1.13
NodeWorx Server Info
10% to 20% CPU usage on average
16GB of memory used on average
Using PHP-FPM 7.3.7 and Apache 2.4.39 and 5.5.60-MariaDB
I decided to migrate this off SiteWorx onto a completely new box that has Intel Core i7-6700 Quad-Core with 64 GB DDR4 RAM. First I tried migrating the web server only and kept the DB on the SiteWorx box but it still happened so I thought I’d migrate the DB over too and again the same thing, it crashed on the new box and ran very slowly too or crashed.
As the CPU and RAM on the old and new box aren’t maxing out can I rule out that it’s not a hardware issue? and something else like configuration? I did try changing the web server and mysql server configuration in InterWorx CP but that didn’t make any difference (too be honest I was just experimenting and had no idea what I was doing). The site was still slow or crashed. I then used Cloudflare service and setup “I’m under attack” anti ddos solution on the article pages where this paricular website was receiving the most traffic and didnt make a difference.
The new box is running NGINX as the front end with Apache backend and MariaDB all the same versions as the InterWorx CP box but with better hardware and only one website. I tried Cloudflare service and setup “I’m under attack” anti ddos solution on the article pages where this paricular website was receiving the most traffic and now the website seems be stable.
Someone told me to run the following command to see if there was a possible ddos attack based on the number of connections: netstat -an | egrep ‘:80|:443’ | grep ESTABLISHED | awk ‘{print $5}’ | grep -o -E “([0-9]{1,3}[.]){3}[0-9]{1,3}” | sort -n | uniq -c | sort -nr
and so the new box when Cloudflare anti ddos was turned off it had 700+ connections (crashed, slow). With Cloudflare anti ddos turned on the connections dropped down to 40+ connections (didn’t crash, fast).
Any ideas on where I should start next to try and find what is causing the site crashing/slowness would be greatly appreciated. Can provide logs where required. There are no slow queries for mysql in the log, persistent connections used with innodb for all sites.
Thanks