Hello
We want to optimize nextcloud server. Uploading slow down when upload larger files.
Needs all best practices steps to optimize nextcloud.
Please advise thanks.
Hello
We want to optimize nextcloud server. Uploading slow down when upload larger files.
Needs all best practices steps to optimize nextcloud.
Please advise thanks.
Hello,
Can you please input more details for better understanding?
Stuff like that
Thanks.
Hi @zohaib09
This should give you a pretty good overview about possible optimisations for a Nextcloud server: https://docs.nextcloud.com/server/latest/admin_manual/installation/server_tuning.html
Hi
thanks
Well, maybe to simple then… Sorry but It’s hard to make any suggestions without more details.
Are you using PHP-FPM/Fastcgi and did you configure a local memory cache (Redis or APCu)?
These are the things I would configure / add first if you didn’t do so already.
Hi @zohaib09,
there is an option named chunck that cut your files into several files of the same size ( by default this size is set to 10 mb)
to change it you can do this :
sudo -u www-data php occ config:app:set files max_chunk_size --value ‘xxxx’
replace xxx by the result of 10x1024x1024
, where 10 is for 10 mb
if you use antivirus for files app you have to define the streamlength of the app with the same or higher value that you have defined
I can not check current chunk setting. I am trying to use:
sudo -u www-data php /var/www/nextcloud/occ config:app:get files max_chunk_size
It simply “reports” a blank line.
Any ideas how to/where I can check my current setting? I am a bit old school, so I prefer to know what i got before i change :-/
@Mageunic Thanks for a quick reply (appreciated!).
Probably you are right, but i find it “strange” not to report anything.
So what you are saying is that the setting in my case is “–value 0” ?:
Like this:
sudo -u www-data php occ config:app:set files max_chunk_size --value 0
I wish there was a way to print this status. I have been searching the postgresql datbase tables, but without any luck :-/
Yo, yes it did:
root@xxxxxx:~# sudo -u www-data php /var/www/nextcloud/occ config:app:set files max_chunk_size --value 0
Config value max_chunk_size for app files set to 0
root@xxxxxx:~# sudo -u www-data php /var/www/nextcloud/occ config:app:get files max_chunk_size
0
root@xxxxxx:~#
I wonder if i fu**ed up my own “control” last day as i did a:
root@xxxxxx:~# sudo -u www-data php /var/www/nextcloud/occ config:app:set files max_chunk_size (then pressing enter)
Config value max_chunk_size for app files set to
Meaning it can look like occ actually does a “set to…” and nothing after means a “–value 0” ?
I don’t really know if nextcloud consider this as 0 but this value means ‘null’ so there is no value
in /…/nextcloud/apps/files/lib/App.php
there is this line
$maxChunkSize = (int)Server::get(IConfig::class)->getAppValue('files', 'max_chunk_size', (string)(10 * 1024 * 1024));
but I don’t know how it is interpreted with a null value (empty)