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

            RemoteApp sporadic failureWindows 2008 RemoteAPP client disconnects within a matter of minutesWhat is the minimum version of RDP supported by Server 2012 RDS?How to configure a Remoteapp server to increase stabilityMicrosoft RemoteApp Active SessionRDWeb TS connection broken for some users post RemoteApp certificate changeRemote Desktop Licensing, RemoteAPPRDS 2012 R2 some users are not able to logon after changed date and time on Connection BrokersWhat happens during Remote Desktop logon, and is there any logging?After installing RDS on WinServer 2016 I still can only connect with two users?RD Connection via RDGW to Session host is not connecting

            How to write a 12-bar blues melodyI-IV-V blues progressionHow to play the bridges in a standard blues progressionHow does Gdim7 fit in C# minor?question on a certain chord progressionMusicology of Melody12 bar blues, spread rhythm: alternative to 6th chord to avoid finger stretchChord progressions/ Root key/ MelodiesHow to put chords (POP-EDM) under a given lead vocal melody (starting from a good knowledge in music theory)Are there “rules” for improvising with the minor pentatonic scale over 12-bar shuffle?Confusion about blues scale and chords

            Esgonzo ibérico Índice Descrición Distribución Hábitat Ameazas Notas Véxase tamén "Acerca dos nomes dos anfibios e réptiles galegos""Chalcides bedriagai"Chalcides bedriagai en Carrascal, L. M. Salvador, A. (Eds). Enciclopedia virtual de los vertebrados españoles. Museo Nacional de Ciencias Naturales, Madrid. España.Fotos