ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    My server is crashing, I think its due to traffic but I am not sure how to tell

    IT Discussion
    5
    50
    6.6k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • IRJI
      IRJ @marcinozga
      last edited by

      @marcinozga said:

      Is traffic mostly anonymous users? Or authenticated? If anonymous, install some caching plugins for that Wordpress. If people are logging in, you will probably need memcache and apc.

      I am using cloudflare for caching which is helping alot. Is there anything else I can do on top of that?

      scottalanmillerS 1 Reply Last reply Reply Quote 0
      • IRJI
        IRJ
        last edited by

        0_1452540099011_2016-01-11_14-21-26.jpg

        A 1 Reply Last reply Reply Quote 0
        • M
          marcinozga
          last edited by

          W3 Total Cache or WP Super Cache will cache your pages as static files. No php or database queries will be fired when somebody visits your site.

          1 Reply Last reply Reply Quote 0
          • scottalanmillerS
            scottalanmiller @IRJ
            last edited by

            @IRJ it's too late to diagnose your issues now, sysstat has to be there and enabled (an extra step that only Ubuntu requires, heaven only knows why they make things so hard) BEFORE you have a crash. So we need to enable it and then wait for the next crash to see if you ran out of memory just before it went down or to get a decent idea of what had happened.

            1 Reply Last reply Reply Quote 0
            • scottalanmillerS
              scottalanmiller @IRJ
              last edited by

              @IRJ said:

              @marcinozga said:

              Is traffic mostly anonymous users? Or authenticated? If anonymous, install some caching plugins for that Wordpress. If people are logging in, you will probably need memcache and apc.

              I am using cloudflare for caching which is helping alot. Is there anything else I can do on top of that?

              Oh yes, that is only a very first step. You want a local cache as well. CF can only offload so much.

              1 Reply Last reply Reply Quote 1
              • scottalanmillerS
                scottalanmiller
                last edited by

                You can also consider static pages generated from WordPress. It is basically a manual full site cache. No active database connection needed and the speed goes way up. Faster and more reliable, but more work.

                stacksofplatesS 1 Reply Last reply Reply Quote 1
                • M
                  marcinozga
                  last edited by

                  https://support.cloudflare.com/hc/en-us/articles/200169546-What-fields-do-I-need-to-enter-in-W3TC-W3-Total-Cache-settings-
                  here's instruction how to setup W3 Total Cache plugin with Cloudflare.

                  1 Reply Last reply Reply Quote 2
                  • stacksofplatesS
                    stacksofplates @scottalanmiller
                    last edited by

                    @scottalanmiller said:

                    You can also consider static pages generated from WordPress. It is basically a manual full site cache. No active database connection needed and the speed goes way up. Faster and more reliable, but more work.

                    Right. I don't know how WP does this, but Drupal has a module where you pretty much install it and then just tell it which pages you want stored as HTML when people are anonymous.

                    scottalanmillerS M 2 Replies Last reply Reply Quote 0
                    • scottalanmillerS
                      scottalanmiller @stacksofplates
                      last edited by

                      @johnhooks said:

                      @scottalanmiller said:

                      You can also consider static pages generated from WordPress. It is basically a manual full site cache. No active database connection needed and the speed goes way up. Faster and more reliable, but more work.

                      Right. I don't know how WP does this, but Drupal has a module where you pretty much install it and then just tell it which pages you want stored as HTML when people are anonymous.

                      WP has a plugin that will do that for the entire site.

                      stacksofplatesS 1 Reply Last reply Reply Quote 0
                      • stacksofplatesS
                        stacksofplates @scottalanmiller
                        last edited by

                        @scottalanmiller said:

                        @johnhooks said:

                        @scottalanmiller said:

                        You can also consider static pages generated from WordPress. It is basically a manual full site cache. No active database connection needed and the speed goes way up. Faster and more reliable, but more work.

                        Right. I don't know how WP does this, but Drupal has a module where you pretty much install it and then just tell it which pages you want stored as HTML when people are anonymous.

                        WP has a plugin that will do that for the entire site.

                        You can do the entire site with the Drupal one, but I've always used it mostly for anonymous users since that data doesn't usually change as much as areas where they can log in.

                        1 Reply Last reply Reply Quote 0
                        • M
                          marcinozga @stacksofplates
                          last edited by

                          @johnhooks said:

                          @scottalanmiller said:

                          You can also consider static pages generated from WordPress. It is basically a manual full site cache. No active database connection needed and the speed goes way up. Faster and more reliable, but more work.

                          Right. I don't know how WP does this, but Drupal has a module where you pretty much install it and then just tell it which pages you want stored as HTML when people are anonymous.

                          Drupal Boost does this for entire site. It's extremely powerful when cache directory is mounted in memory.

                          stacksofplatesS 1 Reply Last reply Reply Quote 0
                          • stacksofplatesS
                            stacksofplates @marcinozga
                            last edited by

                            @marcinozga said:

                            @johnhooks said:

                            @scottalanmiller said:

                            You can also consider static pages generated from WordPress. It is basically a manual full site cache. No active database connection needed and the speed goes way up. Faster and more reliable, but more work.

                            Right. I don't know how WP does this, but Drupal has a module where you pretty much install it and then just tell it which pages you want stored as HTML when people are anonymous.

                            Drupal Boost does this for entire site. It's extremely powerful when cache directory is mounted in memory.

                            That's the one I was thinking of, I couldn't think of it off the top of my head. It's been a little while since I've built something, but I thought I remembered choosing which sections I wanted cached even with it figuring it out also.

                            1 Reply Last reply Reply Quote 0
                            • IRJI
                              IRJ
                              last edited by

                              I had another crash at 2:53PM. Is there anything I can do to find out what happened?

                              A M 2 Replies Last reply Reply Quote 0
                              • A
                                Alex Sage @IRJ
                                last edited by

                                @IRJ Run sar -r and post back here the data.

                                1 Reply Last reply Reply Quote 0
                                • IRJI
                                  IRJ
                                  last edited by

                                  It just crashed again!

                                  1 Reply Last reply Reply Quote 0
                                  • IRJI
                                    IRJ
                                    last edited by

                                    gonna login and try sar -r again

                                    1 Reply Last reply Reply Quote 0
                                    • IRJI
                                      IRJ
                                      last edited by

                                      0_1452543695361_2016-01-11_15-20-15.jpg

                                      1 Reply Last reply Reply Quote 0
                                      • M
                                        marcinozga @IRJ
                                        last edited by

                                        @IRJ said:

                                        I had another crash at 2:53PM. Is there anything I can do to find out what happened?

                                        Look into web server and database logs.

                                        1 Reply Last reply Reply Quote 0
                                        • IRJI
                                          IRJ
                                          last edited by

                                          The site is still down. Should I reboot?

                                          M 1 Reply Last reply Reply Quote 0
                                          • M
                                            marcinozga @IRJ
                                            last edited by

                                            @IRJ said:

                                            The site is still down. Should I reboot?

                                            Entire server? Why?

                                            1 Reply Last reply Reply Quote 0
                                            • 1
                                            • 2
                                            • 3
                                            • 3 / 3
                                            • First post
                                              Last post