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

    NextCloud web interface painfully slow

    IT Discussion
    nextcloud vultr
    12
    56
    5.8k
    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.
    • B
      bnrstnr
      last edited by bnrstnr

      I'm using the current NextCloud production build (14.0.4.2) with Redis setup exactly how @JaredBusch's guide here shows. It's running on Fedora 28 on a Vultr storage (SATA) instance with 2GB memory. I would expect pages to load very quickly, but it usually takes 10+ seconds to load pages, and sometimes I even get a 504 Gateway Time-out. This is a very small installation with only a couple users. I've checked redis with redis-cli MONITOR and it appears to be functioning.

      Any ideas?

      EDIT: This instance is actually Fedora 27, not 28.

      travisdh1T scottalanmillerS 2 Replies Last reply Reply Quote 1
      • travisdh1T
        travisdh1 @bnrstnr
        last edited by

        @bnrstnr How's the client ISP connection? I've seen some major issues at handoff points to Level3 since their merger with Comcast.

        DashrenderD 1 Reply Last reply Reply Quote 0
        • B
          bnrstnr
          last edited by bnrstnr

          We have WOW cable internet, like 240/20ish

          I've poked around and found some other users NC installs and their login pages load almost instantly for me

          travisdh1T scottalanmillerS 2 Replies Last reply Reply Quote 0
          • travisdh1T
            travisdh1 @bnrstnr
            last edited by

            @bnrstnr said in NextCloud web interface painfully slow:

            We have WOW cable internet, like 240/20ish

            I've poked around and found some other users NC installs and their login pages load almost instantly for me

            You've looked at the system with something like top or glances, right?

            The only other thing that comes to mind is adding a swap file. Doesn't need to be large, but most kernels like to have at least a bit available.

            1 Reply Last reply Reply Quote 0
            • B
              bnrstnr
              last edited by

              htop is interesting, it's showing the CPU spiking up to 100% every few seconds. Lowest I've seen it go was around 20%.

              0_1543587289350_8954cb55-06f3-4942-8a05-f554edee006a-image.png

              [root@nextcloud ~]# free
                            total        used        free      shared  buff/cache   available
              Mem:        2040216      381064      912776       47240      746376     1421468
              Swap:       2179068           0     2179068
              
              travisdh1T 1 Reply Last reply Reply Quote 0
              • travisdh1T
                travisdh1 @bnrstnr
                last edited by

                @bnrstnr Something is not right in CPU land there. Can you see what process(es) are eating your CPU time?

                B 1 Reply Last reply Reply Quote 0
                • B
                  bnrstnr
                  last edited by

                  0_1543587501142_9643176c-4b28-41c4-b0e2-f2ce5bef0451-image.png

                  travisdh1T 1 Reply Last reply Reply Quote 0
                  • B
                    bnrstnr @travisdh1
                    last edited by

                    @travisdh1 said in NextCloud web interface painfully slow:

                    @bnrstnr Something is not right in CPU land there. Can you see what process(es) are eating your CPU time?

                    Is there something better than top/htop to visualize the processes?

                    ObsolesceO 1 Reply Last reply Reply Quote 0
                    • travisdh1T
                      travisdh1 @bnrstnr
                      last edited by

                      @bnrstnr Ah, yeah, every monitoring tool will peg the CPU when you first start it. Give it like 5-10 seconds and it should calm down ang give you a better look at what is actually going on.

                      From the looks of that screenshot, it's probably someone syncing files from within Nextcloud.

                      B 1 Reply Last reply Reply Quote 0
                      • B
                        bnrstnr @travisdh1
                        last edited by bnrstnr

                        @travisdh1 said in NextCloud web interface painfully slow:

                        From the looks of that screenshot, it's probably someone syncing files from within Nextcloud.

                        We literally have 2 users that use this right now, I have to imagine this Vultr instance should be able to handle way more than 2 users syncing. I'm the only one that uses the sync client, the other user only uses the web interface and he's not using it right now lol

                        1 Reply Last reply Reply Quote 0
                        • wirestyle22W
                          wirestyle22
                          last edited by

                          So did anything change in regards to htop

                          B 1 Reply Last reply Reply Quote 0
                          • B
                            bnrstnr @wirestyle22
                            last edited by

                            @wirestyle22 No, it's been running for 25 minutes and still showing high CPU usage.

                            0_1543589743207_2efb36fd-f66f-4539-a1be-37a8041c7eb7-image.png

                            wirestyle22W 1 Reply Last reply Reply Quote 0
                            • wirestyle22W
                              wirestyle22 @bnrstnr
                              last edited by wirestyle22

                              @bnrstnr install glances and run that instead of htop. just curious about the reporting

                              B 1 Reply Last reply Reply Quote 0
                              • B
                                bnrstnr @wirestyle22
                                last edited by

                                @wirestyle22
                                0_1543590437746_edbac620-8504-49d2-ba7f-15d4f458f1b9-image.png

                                1 Reply Last reply Reply Quote 0
                                • JaredBuschJ
                                  JaredBusch
                                  last edited by

                                  Reboot.

                                  1 Reply Last reply Reply Quote 1
                                  • black3dynamiteB
                                    black3dynamite
                                    last edited by black3dynamite

                                    For the 504 Gateway Time-Out, and if you are using nginx has proxy, do you have this inside the location block in your nextcloud.conf file?

                                    proxy_connect_timeout 600;
                                    proxy_send_timeout 600;
                                    proxy_read_timeout 600;
                                    send_timeout 600;
                                    
                                    B 1 Reply Last reply Reply Quote 0
                                    • dafyreD
                                      dafyre
                                      last edited by

                                      @JaredBusch said in NextCloud web interface painfully slow:

                                      Reboot.

                                      This. After you reboot, pay attention to the STEAL time. I've never noticed that in the display before... In your glances pic above, steal % is at 48%.

                                      I had to go google it to see what it was, lol... The short version is that steal % is how long your VM has to wait until the Hypervisor gives it more CPU time.

                                      This article, though dated, seems to give good info.
                                      (Understanding CPU Steal Time)

                                      B 1 Reply Last reply Reply Quote 0
                                      • B
                                        bnrstnr
                                        last edited by bnrstnr

                                        This is after reboot. It's still crazy slow. I rebooted a couple times yesterday, too. Even installing glances with DNF was crazy slow, and opening it takes about 20 seconds.

                                        Glances had already been running for 28 min at this point, so I'm sure any spikes from opening had subsided by then.

                                        0_1543595922876_12a57eb8-5b8b-4292-bbae-774a39e41422-image.png

                                        1 Reply Last reply Reply Quote 0
                                        • B
                                          bnrstnr @dafyre
                                          last edited by

                                          @dafyre said in NextCloud web interface painfully slow:

                                          This. After you reboot, pay attention to the STEAL time. I've never noticed that in the display before... In your glances pic above, steal % is at 48%.
                                          I had to go google it to see what it was, lol... The short version is that steal % is how long your VM has to wait until the Hypervisor gives it more CPU time.
                                          This article, though dated, seems to give good info.
                                          (Understanding CPU Steal Time)

                                          This almost sounds like I have a noisy neighbor on my VPS?

                                          travisdh1T JaredBuschJ scottalanmillerS 3 Replies Last reply Reply Quote 3
                                          • B
                                            bnrstnr @black3dynamite
                                            last edited by

                                            @black3dynamite said in NextCloud web interface painfully slow:

                                            For the 504 Gateway Time-Out, and if you are using nginx has proxy, do you have this inside the location block in your nextcloud.conf file?

                                            proxy_connect_timeout 600;
                                            proxy_send_timeout 600;
                                            proxy_read_timeout 600;
                                            send_timeout 600;
                                            

                                            I have nothing relating to timeouts in my nginx conf.

                                            Should I add it? I'm assuming it's using whatever the nginx default is.

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