Help with high cpu server
Hi Guys,
I'm looking for some help as my hosting provider doesn't want to help. I run a cent os 7 server for a client and they are sometimes on TV which then increases largely to the number of requests the server gets. We use Cloudflare under attack mode however all the 6 CPUs get maxed at 100% which causes it to go down. The ram seems to be perfectly fine and doesn't have any issues.
I've tried to optimise it to the best of my ability however before hiring an advanced technician I'm looking for some pointers so this doesn't happen again. If you need any server information do let me know
Thanks
-
Hi, With the data you provide, it is very difficult to know what is happening. First of all, if a service is on TV, for a single server, it may be that the server is running out of resources. We should also know what kind of website you are hosting, is it a Wordpress, for example, a database driven website? My advice, dealing with high usage servers and requests, is to check that it makes a high usage. If they are apache requests and you have resources, but the server crashes, you can increase the max clients, in case you run out of slots. I would also recommend (in general terms, as I say, I don't know exactly what you use the server for) that you analyze MySQL, for example, the command mysqladmin proc status, can tell you details of which queries are open and which ones consume more resources. Additionally, if you have a wordpress type script, I would advise you to use some powerful cache system, which allows to avoid that the connections are saturated when asking for all the resources. A little roughly and in a very generic way, with the little information we have about the server and the web site, is the first thing I would suggest. Good luck. 0 -
Hi, With the data you provide, it is very difficult to know what is happening. First of all, if a service is on TV, for a single server, it may be that the server is running out of resources. We should also know what kind of website you are hosting, is it a Wordpress, for example, a database driven website? My advice, dealing with high usage servers and requests, is to check that it makes a high usage. If they are apache requests and you have resources, but the server crashes, you can increase the max clients, in case you run out of slots. I would also recommend (in general terms, as I say, I don't know exactly what you use the server for) that you analyze MySQL, for example, the command mysqladmin proc status, can tell you details of which queries are open and which ones consume more resources. Additionally, if you have a wordpress type script, I would advise you to use some powerful cache system, which allows to avoid that the connections are saturated when asking for all the resources. A little roughly and in a very generic way, with the little information we have about the server and the web site, is the first thing I would suggest. Good luck.
Hi Kenny, Thanks for the fast reply the server information is as follows Total processors: 6 Processor #1 Vendor AuthenticAMD Name AMD EPYC 7282 16-Core Processor Speed 2800.000 MHz Cache 512 KB Memory Information Hardware information is not available inside a container. System Information Linux 1 hostname.cprapid.com 3.10.0 #1 SMP Fri Nov 20 21:47:55 MSK 2020 x86_64 x86_64 x86_64 GNU/Linux Physical Disks Hardware information is not available inside a container. Current Memory Usage total used free shared buff/cache available Mem: 16777216 1614448 10007348 137800 5155420 15021784 Swap: 524288 149640 374648 Total: 17301504 1764088 10381996 -- -- -- The website is built on WordPress and it's the only one on the server. I believe its running out of resources due to the number of visits it gets at that time as the avg load shoots from 1 to 150 roughly. We use WPRocket cache & also Cloudflare so hopefully that's enough. If you need any more information just let me know. Thanks once again!0
Please sign in to leave a comment.
Comments
2 comments