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

    Scheduled Pinned Locked Moved IT Discussion
    50 Posts 5 Posters 7.7k Views
    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 @Alex Sage
      last edited by

      @anonymous said:

      @IRJ said:

      0_1452539689892_2016-01-11_14-14-35.jpg

      Do you have a chart like this for memory usage?

      No unfortunately

      A 1 Reply Last reply Reply Quote 0
      • A
        Alex Sage @IRJ
        last edited by Alex Sage

        @IRJ I have run Web Servers on DO before, you need to 2GB at the least unless you use something like Cloudways that has Nginx, Varnish, Memcached, etc.

        1 Reply Last reply Reply Quote 1
        • A
          Alex Sage
          last edited by

          Here is the nice graph Cloudways gives you.....

          0_1452544799000_freememory.png

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

            I upgraded to 2GB of RAM and we are seeing more traffic. No crashes so far.

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

              I just had a look at it again, and you have 22 css files. That's insane, that's what's killing your web server. You have total of 156 requests on each visit. Look for a plugin that will aggregate css and js files.

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

                Wow, that's a lot of CSS!

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

                  Here are some of cloudflare settings and stats

                  5_1452607671377_2016-01-12_9-04-14.jpg 4_1452607671377_2016-01-12_9-04-41.jpg 3_1452607671377_2016-01-12_9-05-12.jpg 2_1452607671377_2016-01-12_9-06-19.jpg 1_1452607671376_2016-01-12_9-06-38.jpg 0_1452607671376_2016-01-12_9-07-22.jpg

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

                    Minification is not aggregation. It is useful, and I'd always do minification, but aggregation gives you so much more.

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

                      Here's how to do it with w3 total cache plugin: https://wordpress.org/support/topic/plugin-w3-total-cache-css-and-js-combine-not-supported

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

                        Sorry to resurrect the dead, but this will help anyone who is experiencing the server database connection issue

                        7- SWAP File
                        A common issue that WordPress users have is the dreaded “error establishing a database connection” error that breaks a website. This is almost always due to your memory being completely used up – your database can’t create any new information because your RAM is jam-packed full. There are two reasons for this:

                        You have a bajillion different versions of your posts (by default, WordPress saves all older revisions of pages and posts so you can recover previous copies).
                        You didn’t have enough memory for your usage to begin with.
                        If it’s the former, we suggest you download a plugin like Better Delete Revision – this will clean up all the old copies and free up some database memory. If it’s the latter, and in the case of setting up a new server on Digital Ocean, you need to create a swap file. It’s a bit more complicated, so luckily, Digital Ocean has their own handy guide on how to create permanent swap memory in Ubuntu. This creates a file that, yes, swaps in and out as memory gets full, allowing for reallocation of files to keep your memory clear.

                        https://www.creativecali.com/how-to-set-up-wordpress-on-digital-ocean/

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