Slow upload speed

nc12

#1

Hey, I’ve installed Nextcloud 12 on my Vserver,. The specs of my server are:

1 CPU Intel Xeon CPU E5, max. 3.70GHz
DDR4, 2133MhZ, SDRAM 512
25 GB HDD

I’ve successfully installed Nextcloud with the “How to install it on Linux”. Everything looks fine but I got some problems when uploading files with it. The speed is really slow. For example: If I’m uploading 20 MB of pictures it takes about 5-6 minutes which is too much imo.

Anything I can change in order to speed my Nextcloud up?


#2

Hi,

It depends on what you have done so far.
While PHP is used for the upload you need to speed up PHP I guess. Are you already using the caching mechanism described in the documentations?
Fast-CGI (php-fpm for nginx) and redis might be helpful, but I’m not 100% sure if they really effect uploads. But for comfortable usage of the server definitely nice to have anyway.

Whenever you install a service for performance enhancement the tip in the guides is to use sockets instead of TCP services.
Here an example, two possibilities but rather use the socket option:

upstream php-handler {
#server 127.0.0.1:9000;
server unix:/var/run/php/php7.0-fpm.sock;
}

#3

Using the opchache function, yeah. I’ve also installed everything for performance in the Linux installation guide


#4

oh my god ~ I met this issue yet !


#5

hi Julie112 , I used centos 7.2 and deployment apache mariadb and php7.0 。Are you the same config wiht me ?


#6

512 MB RAM is really not much. You probably need to optimize all the settings of your webserver, database-server and you will still hit some system limitations.


#7

512 mb ram is indeed very little, that is probably a bottleneck. If you had more I’d also recommend running Redis :wink:


#8

I’m facing the same issues here… I have nextcloud running on a 4 core 4GB VPS inside a host that runs an ADM 1950X threadripper… The drives is 2xM.2 in RAID0, I’m uploading over 1GB local network (though for internet we have 2x200mbit, just in case that would be it) so speed should not be the issue…

Yet, when I upload 700MB, after 5 minutes only 40MB has passed, and half of it just plainly fails…

I have about 100GB of files to upload so right now I’m slightly nervous… :grimacing:

I do see the following error upon uploading, but upload always continues anyway after this…

core.js?v=fceaa74d-8:2 Uncaught Error: cannot call methods on ocdialog prior to initialization; attempted to call method ‘destroy’
at Function.error (core.js?v=fceaa74d-8:2)
at HTMLDivElement. (core.js?v=fceaa74d-8:13)
at Function.each (core.js?v=fceaa74d-8:2)
at a.fn.init.each (core.js?v=fceaa74d-8:2)
at a.fn.init.e.fn.(/index.php/apps/files/anonymous function) [as ocdialog] (https://DOMAIN.com/core/vendor/core.js?v=fceaa74d-8:13:5938)
at HTMLDivElement.close (merged-template-prepend.js?v=fceaa74d-8:929)
at e.(/index.php/apps/files/anonymous function).(anonymous function)._trigger (https://DOMAIN.com/core/vendor/core.js?v=fceaa74d-8:13:10075)
at merged-template-prepend.js?v=fceaa74d-8:214

Server runs PHP7.0 (yes yes, will upgrade to 7.3 soon), uses APCU, and memcached, and I’ve setup redis for a nextcloud plugin, but I did not find something yet about setting up redis for nextcloud itself…

Client is chome Version 67.0.3396.87 (Official Build) (64-bit)

Does anybody have an idea what could be the cause of this and how I can speed it up?