Increase Loading Speed and Reliability
-
I am running on aws with 4 vcpu and 8 MB RAM with only core and essential addons including Nextcloud Office with Collabora, and so far we only have like 6 users registered to use nextcloud since we still feel like there's a an issue with loading speed for whole UI, and sometimes the nextcloud office not loaded smoothly
Can anyone share experiences on using nextcloud, and maybe there's tips on how to make it more reliable
-
@firmansi I would try two things:
- Bump the memory limit of the app to say 2-3GB or so.
- Adjust apache prefork configuration as you see fit. It's in
/app/data/apache
which you can edit using the File manager. Specifically you can bump upMaxRequestWorkers
to a higher number say 50 or so.
<IfModule mpm_prefork_module> # On startup, start these many servers StartServers 2 # At any given time, keep atleast these many servers MinSpareServers 2 # At any given time, keep atmost these many idle servers (this is always >= MinSpareServers+1) MaxSpareServers 3 # Maximum number of servers at any given instant. Requests will be queued after this MaxRequestWorkers 15 # Recycle process after handling these many requests. This protected against accidental memory leaks MaxConnectionsPerChild 100 </IfModule>
-
The difference is day and night! I might have gone overboard with the values, but it's on my homeserver so it should handle it just fine.
<IfModule mpm_prefork_module> # On startup, start these many servers StartServers 10 # At any given time, keep atleast these many servers MinSpareServers 10 # At any given time, keep atmost these many idle servers (this is always >= MinSpareServers+1) MaxSpareServers 20 # Maximum number of servers at any given instant. Requests will be queued after this MaxRequestWorkers 95 # Recycle process after handling these many requests. This protected against accidental memory leaks MaxConnectionsPerChild 200 </IfModule>
-
@humptydumpty what's your server spec for this configuration? will the spec have impact on apache configuration?
-
I5-6500T and 8GB RAM. Idk about the impact on apache but the resource usage look the same in the graphs.
-
@firmansi
AFAIK, collabora office has no specific settings to optimize.Turns out there are a bunch of settings. If you see https://github.com/CollaboraOnline/online/blob/master/coolwsd.xml.in , there is
num_prespawn_children
and alsomax_concurrency
. Maybe you can play with those settings a bit. On Cloudron, this file is in/app/data/coolwsd.xml
. -
After trying Onlyoffice Docs for the the last 15 days, i can say onlyoffice is better than Collabora, it runs and loads faster than collabora with the same machine specification and number of users, now i turn back on the nextcloud office with onlyoffice ,i can say this solution is more reliable than collabora office which is slow and failing most of the time