• Support
  • Best Settings for Nginx on WordPress? (Server Fails Loader I/O tests)

I ran three tests on two identical servers (4vCPU, 8GB RAM, 200GB SSD)

Test 1 - CyberPanel+OLS

Test 2 - aaPanel+Nginx

Test 3 - aaPanel+OLS

Results

I kept all php settings the same with same number of connections allowed in all three tests.

Also used the same website but running on different domains for simultaneous testing on both servers

I used Loader IO to do the stress tests.

=========
Regardless of how hard I tried, aaPanel failed to manage anything above 250clients/second (for one minute). That's for both Nginx and OLS.

Anything above that would cause high CPU load (100%) and the website loads a blank page on OLS when you access the domain (On Nginx the website goes offline).

However, the RAM usage stays intact at around 2GB RAM.

Checking logs shows php processes runs into an unending loop. And OLS/Nginx gets stuck.

====

With CyberPanel I went as far as 5000clients/second. (Compare that to 250clients/second on aaPanel).

Anything above that and OLS cancels all the requests without crashing. It's like pouring water on fire.

What's amusing is, the website remains accessible even when it cancels out the Loader IO requests.

Another thing is CPU usage remains stable below, 5% (it hardly even goes above that).

That also happens when I use excess requests. The CPU usage remains so low. (Below 5%) CyberPanel just cancels out the requests without boiling over.

On aaPanel even with 250clients/sec the CPU hits 100% and load processes hit 100% as well with php causing the endless processing.

RAM usage is around 2GB same as aaPanel here.

How can I fix this? I want to use aaPanel because of rsync

    😆 you are so funny
    aapanel it's just an interface manager and nothing more.
    See my test
    with Nginx

      4 days later

      idflorin

      I'm not sure what's exciting you when that graph clearly shows how terrible your performance is.

      Look at your error 500s threshold is almost at 40% meaning it was 10% away from being cancelled by Loader I/O.

      Also compare your graph, the total requests being made and the resulting success rate to the requests. It's almost half that.

      ==================

      Compare with my graph below, zero error 500s

      And the requests, responses, and success rate almost match. Not like the confusion you have.

      Doing over 2500 requests/second with CyberPanel+OLS

      I know aaPanel is like any other panel out there. But It's compilation of packages may be a mess somewhere.

        idflorin so where is your aaPanel+Nginx?

        I'm rebuilding the server using MariaDB. I will post the results later.

        idflorin I redid tests for 10000 in 1 min

        Now that's excellent performance. Perhaps you can help me with your configurations?

        Here are the results of aaPanel + Nginx

        Can't even manage over 100users/second

        Tried again and it failed.

        The processor and running processes hit 100%. From the logs, it appears php-fpm is roasting the server. Keep in mind the server has a 4vCPU, 8GB dedicated RAM, and 200GB SSD.

        Server log

        You can see, I have tried as much as possible to reduce php settings but it still fails. Tried with Memcached, Redis, Opache, Apcu. Nothing works. php-fm roasts the server.

        Regardless of how much I try to adjust these settings up or down, php-fm roasts the CPU.

        I have also tested it on a VDS 4 dedicated cores and 16GB RAM and still CPU shoots to 100% because of php-fm.

        @aapanel_power @aaPanel_Jose ~ please help.

          on target you have wordpress?

          maybe CyberPanel auto-activate cache plugin LScache? or redis cache ?

          please post php.ini settings from both servers

            KrzysztofMaciejewski on target you have wordpress?

            How do I double-check this?

            And on CyberPanel, I don't even use LScache. I prefer W3 Total Cache or Autoptimize or WP Rocket.

            I'm away from my workstation. Will post the php.ini records later.

            deewinc I don't really use WP, I tested a drupal 9.2 site
            Nevertheless, My config for Centos7 is:

            my MariaDB

            I'll try Wp and post an update.

              idflorin I'll try Wp and post an update.

              Sure, will wait for your results.

              Give me like 4 hours, I will post the php.ini records

              I remade the tests:
              Ubuntu+php7.4 with apc+mariadb 10.4+WP Super Cache
              site.com (I have lots of images 50+ on the frontpage and Blog pages show at most = 51)

              I rebuilt the VPS with centos7
              Centos+php7.4 with apc+mariadb 10.4+WP Super Cache
              site.com (I have lots of images 50+ on the frontpage and Blog pages show at most = 51)

              and
              site.com (on the frontpage and Blog pages show at most = 12)

              and
              site.com/contact (it's a lot cleaner)

                idflorin ~ thanks for doing that.

                You can see how much the errors and u fulfilled requests are on the homepage and blog pages. These are areas that are visited the most.

                And the traffic of less than 200users/second with such results confirms there are issues with aaPanel+Nginx+WordPress.

                Other pages such as contact-us, about-us have fewer content.

                  idflorin I'm happy for you. Please use CyberPanel. Good luck and big traffic!

                  Thanks for that bro.

                  aaPanel has great potential, especially with it's application market thing.

                  I hope the devs work on improving the backend handling of WordPress scripts.

                  It's load balancing and rsyc apps are what I had hopes of using.

                  By the way, what's your server specs? I'm thinking of deploying it on a high spec server and see if it will perform better.

                    idflorin actually, that's what I'm using too. I have two servers of that type on Contabo.

                    Then I have a VDS on NetCup.eu. Also this one with more specs, aaPanel+Nginx fails to impress. I will try get a dedicated server and do the testing.

                    deewinc Look at your php slow log, is there code execution efficiency is too low resulting in a long time to consume the server resources

                      Connect with us: 📨 Telegram 💬 Discord Email: support@aapanel.com