Wordpress site overloads the server, shutting down db gets server normalamazon RDS Security Groups IssueCloudflare performance, ddosServer does not load WordPress - No HTML nor PHP ErrorsHow to troubleshoot slow performance on AWS EC2/RDS?Terrible performance of Wordpress site on Amazon EC2 + apache2 + ubuntu server 12.04Reducing AWS EC2 Instance and RDS - Is 'low' Network Performance acceptable?Identifying Traffic from Amazon to EC2 InstanceEC2 Instance in healthy state in ELB, but still give 503 backend server is at capacityNew webserver becomes unresponsive, unexplained random load spikesWordpress Server sending bad request to itself and crashing apache

What is the most expensive material in the world that could be used to create Pun-Pun's lute?

All ASCII characters with a given bit count

Can I criticise the more senior developers around me for not writing clean code?

Could moose/elk survive in the Amazon forest?

Are there moral objections to a life motivated purely by money? How to sway a person from this lifestyle?

What does "function" actually mean in music?

Can someone publish a story that happened to you?

Is Electric Central Heating worth it if using Solar Panels?

Where was the County of Thurn und Taxis located?

My bank got bought out, am I now going to have to start filing tax returns in a different state?

Crossed out red box fitting tightly around image

Island of Knights, Knaves and Spies

Co-worker works way more than he should

As an international instructor, should I openly talk about my accent?

Drawing a german abacus as in the books of Adam Ries

How exactly does Hawking radiation decrease the mass of black holes?

Prove that the countable union of countable sets is also countable

How do I deal with a coworker that keeps asking to make small superficial changes to a report, and it is seriously triggering my anxiety?

Negative Resistance

Why doesn't the standard consider a template constructor as a copy constructor?

How can I practically buy stocks?

A strange hotel

Why did C use the -> operator instead of reusing the . operator?

What does a straight horizontal line above a few notes, after a changed tempo mean?



Wordpress site overloads the server, shutting down db gets server normal


amazon RDS Security Groups IssueCloudflare performance, ddosServer does not load WordPress - No HTML nor PHP ErrorsHow to troubleshoot slow performance on AWS EC2/RDS?Terrible performance of Wordpress site on Amazon EC2 + apache2 + ubuntu server 12.04Reducing AWS EC2 Instance and RDS - Is 'low' Network Performance acceptable?Identifying Traffic from Amazon to EC2 InstanceEC2 Instance in healthy state in ELB, but still give 503 backend server is at capacityNew webserver becomes unresponsive, unexplained random load spikesWordpress Server sending bad request to itself and crashing apache






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;








1















Hi I have a wordpress site running on EC2 and RDS. All of a sudden the site won't load and on investigating I see that the server load is at 15 and increasing rapidly.



I remove access of this EC2 from the RDS security group and the server gets back to normal. Now has a load of 0.07



The moment I allow the server to connect with the db that is the RDS the load spikes and server gets irresponsive.



I suspect its a hack? I have daily backups of both EC2 and RDS and can restore it to a state when it was working well, but I want to find out what is causing this. This has happened before when I had updated the plugins and back then I had just done a restore to a previous state and everything got back to working.



Can someone guide me into how I can pinpoint what script or backdoor is open and causing this?



Additional Data



The site is running behind cloudflare so I doubt that it is DDOS attack.



Here is a screen grab of htop with access to RDS enabled



enter image description here










share|improve this question
























  • The first step is to use "top" or similar to find out what's using CPU. Next I'd look in the web server access / errors logs to see if there's anything interesting there. Could just be a high load, or DDOS. Once you've done that please edit your question to add information you found. Right now there's nothing to go on.

    – Tim
    Apr 18 at 18:15











  • Also check the process list on rds. I had a single plugin have 5 stuck processes on rds causing exactly the same symptoms

    – jdog
    Apr 22 at 2:28

















1















Hi I have a wordpress site running on EC2 and RDS. All of a sudden the site won't load and on investigating I see that the server load is at 15 and increasing rapidly.



I remove access of this EC2 from the RDS security group and the server gets back to normal. Now has a load of 0.07



The moment I allow the server to connect with the db that is the RDS the load spikes and server gets irresponsive.



I suspect its a hack? I have daily backups of both EC2 and RDS and can restore it to a state when it was working well, but I want to find out what is causing this. This has happened before when I had updated the plugins and back then I had just done a restore to a previous state and everything got back to working.



Can someone guide me into how I can pinpoint what script or backdoor is open and causing this?



Additional Data



The site is running behind cloudflare so I doubt that it is DDOS attack.



Here is a screen grab of htop with access to RDS enabled



enter image description here










share|improve this question
























  • The first step is to use "top" or similar to find out what's using CPU. Next I'd look in the web server access / errors logs to see if there's anything interesting there. Could just be a high load, or DDOS. Once you've done that please edit your question to add information you found. Right now there's nothing to go on.

    – Tim
    Apr 18 at 18:15











  • Also check the process list on rds. I had a single plugin have 5 stuck processes on rds causing exactly the same symptoms

    – jdog
    Apr 22 at 2:28













1












1








1








Hi I have a wordpress site running on EC2 and RDS. All of a sudden the site won't load and on investigating I see that the server load is at 15 and increasing rapidly.



I remove access of this EC2 from the RDS security group and the server gets back to normal. Now has a load of 0.07



The moment I allow the server to connect with the db that is the RDS the load spikes and server gets irresponsive.



I suspect its a hack? I have daily backups of both EC2 and RDS and can restore it to a state when it was working well, but I want to find out what is causing this. This has happened before when I had updated the plugins and back then I had just done a restore to a previous state and everything got back to working.



Can someone guide me into how I can pinpoint what script or backdoor is open and causing this?



Additional Data



The site is running behind cloudflare so I doubt that it is DDOS attack.



Here is a screen grab of htop with access to RDS enabled



enter image description here










share|improve this question
















Hi I have a wordpress site running on EC2 and RDS. All of a sudden the site won't load and on investigating I see that the server load is at 15 and increasing rapidly.



I remove access of this EC2 from the RDS security group and the server gets back to normal. Now has a load of 0.07



The moment I allow the server to connect with the db that is the RDS the load spikes and server gets irresponsive.



I suspect its a hack? I have daily backups of both EC2 and RDS and can restore it to a state when it was working well, but I want to find out what is causing this. This has happened before when I had updated the plugins and back then I had just done a restore to a previous state and everything got back to working.



Can someone guide me into how I can pinpoint what script or backdoor is open and causing this?



Additional Data



The site is running behind cloudflare so I doubt that it is DDOS attack.



Here is a screen grab of htop with access to RDS enabled



enter image description here







amazon-web-services linux-networking wordpress ubuntu-18.04






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Apr 18 at 18:22







Rick Roy

















asked Apr 18 at 18:04









Rick RoyRick Roy

126312




126312












  • The first step is to use "top" or similar to find out what's using CPU. Next I'd look in the web server access / errors logs to see if there's anything interesting there. Could just be a high load, or DDOS. Once you've done that please edit your question to add information you found. Right now there's nothing to go on.

    – Tim
    Apr 18 at 18:15











  • Also check the process list on rds. I had a single plugin have 5 stuck processes on rds causing exactly the same symptoms

    – jdog
    Apr 22 at 2:28

















  • The first step is to use "top" or similar to find out what's using CPU. Next I'd look in the web server access / errors logs to see if there's anything interesting there. Could just be a high load, or DDOS. Once you've done that please edit your question to add information you found. Right now there's nothing to go on.

    – Tim
    Apr 18 at 18:15











  • Also check the process list on rds. I had a single plugin have 5 stuck processes on rds causing exactly the same symptoms

    – jdog
    Apr 22 at 2:28
















The first step is to use "top" or similar to find out what's using CPU. Next I'd look in the web server access / errors logs to see if there's anything interesting there. Could just be a high load, or DDOS. Once you've done that please edit your question to add information you found. Right now there's nothing to go on.

– Tim
Apr 18 at 18:15





The first step is to use "top" or similar to find out what's using CPU. Next I'd look in the web server access / errors logs to see if there's anything interesting there. Could just be a high load, or DDOS. Once you've done that please edit your question to add information you found. Right now there's nothing to go on.

– Tim
Apr 18 at 18:15













Also check the process list on rds. I had a single plugin have 5 stuck processes on rds causing exactly the same symptoms

– jdog
Apr 22 at 2:28





Also check the process list on rds. I had a single plugin have 5 stuck processes on rds causing exactly the same symptoms

– jdog
Apr 22 at 2:28










1 Answer
1






active

oldest

votes


















1














Based on the info provided from the screenshot, you are short on RAM. So the swap goes to the roof (seen on your screenshot too), making your CPU wait, slowing down your drives, piling up NginX and Apache processes, intensifying RAM requirements, making CPU wait even more, etc...



So my recommendations would be to:
1) pump up the RAM
2) reduce the swapiness



Following the RAM adjustment, more adjustments on different levels (i.e. CPU) could be required.






share|improve this answer























    Your Answer








    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "2"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader:
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    ,
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );













    draft saved

    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f963709%2fwordpress-site-overloads-the-server-shutting-down-db-gets-server-normal%23new-answer', 'question_page');

    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    1














    Based on the info provided from the screenshot, you are short on RAM. So the swap goes to the roof (seen on your screenshot too), making your CPU wait, slowing down your drives, piling up NginX and Apache processes, intensifying RAM requirements, making CPU wait even more, etc...



    So my recommendations would be to:
    1) pump up the RAM
    2) reduce the swapiness



    Following the RAM adjustment, more adjustments on different levels (i.e. CPU) could be required.






    share|improve this answer



























      1














      Based on the info provided from the screenshot, you are short on RAM. So the swap goes to the roof (seen on your screenshot too), making your CPU wait, slowing down your drives, piling up NginX and Apache processes, intensifying RAM requirements, making CPU wait even more, etc...



      So my recommendations would be to:
      1) pump up the RAM
      2) reduce the swapiness



      Following the RAM adjustment, more adjustments on different levels (i.e. CPU) could be required.






      share|improve this answer

























        1












        1








        1







        Based on the info provided from the screenshot, you are short on RAM. So the swap goes to the roof (seen on your screenshot too), making your CPU wait, slowing down your drives, piling up NginX and Apache processes, intensifying RAM requirements, making CPU wait even more, etc...



        So my recommendations would be to:
        1) pump up the RAM
        2) reduce the swapiness



        Following the RAM adjustment, more adjustments on different levels (i.e. CPU) could be required.






        share|improve this answer













        Based on the info provided from the screenshot, you are short on RAM. So the swap goes to the roof (seen on your screenshot too), making your CPU wait, slowing down your drives, piling up NginX and Apache processes, intensifying RAM requirements, making CPU wait even more, etc...



        So my recommendations would be to:
        1) pump up the RAM
        2) reduce the swapiness



        Following the RAM adjustment, more adjustments on different levels (i.e. CPU) could be required.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Apr 18 at 21:01









        Marc-Andre ChampagneMarc-Andre Champagne

        662




        662



























            draft saved

            draft discarded
















































            Thanks for contributing an answer to Server Fault!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid


            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.

            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f963709%2fwordpress-site-overloads-the-server-shutting-down-db-gets-server-normal%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Wikipedia:Vital articles Мазмуну Biography - Өмүр баян Philosophy and psychology - Философия жана психология Religion - Дин Social sciences - Коомдук илимдер Language and literature - Тил жана адабият Science - Илим Technology - Технология Arts and recreation - Искусство жана эс алуу History and geography - Тарых жана география Навигация менюсу

            Bruxelas-Capital Índice Historia | Composición | Situación lingüística | Clima | Cidades irmandadas | Notas | Véxase tamén | Menú de navegacióneO uso das linguas en Bruxelas e a situación do neerlandés"Rexión de Bruxelas Capital"o orixinalSitio da rexiónPáxina de Bruselas no sitio da Oficina de Promoción Turística de Valonia e BruxelasMapa Interactivo da Rexión de Bruxelas-CapitaleeWorldCat332144929079854441105155190212ID28008674080552-90000 0001 0666 3698n94104302ID540940339365017018237

            What should I write in an apology letter, since I have decided not to join a company after accepting an offer letterShould I keep looking after accepting a job offer?What should I do when I've been verbally told I would get an offer letter, but still haven't gotten one after 4 weeks?Do I accept an offer from a company that I am not likely to join?New job hasn't confirmed starting date and I want to give current employer as much notice as possibleHow should I address my manager in my resignation letter?HR delayed background verification, now jobless as resignedNo email communication after accepting a formal written offer. How should I phrase the call?What should I do if after receiving a verbal offer letter I am informed that my written job offer is put on hold due to some internal issues?Should I inform the current employer that I am about to resign within 1-2 weeks since I have signed the offer letter and waiting for visa?What company will do, if I send their offer letter to another company