Nextcloud web interface is slow

these are my specs below. i would say the hardware is fast enough. php has 1024MB of memory now.

what if i try to create a ram disk and put my sql there? would that work? :slight_smile:

The server runs on a HP Z200 workstation with an intel Xeon X3470 3GHz 4 core processor, 8GBs DDR3 RAM and 3 x 250 GB Seagate HDD ST3250312CS.
I am the only user on my Nextcloud and I usually don’t perform any heavy tasks. On average, the CPU shows 1% usage and RAM about 1.5 GB. I also have 250 GB of free hard disk space available.

nope, no Ramdisk… bad play around…

hardware is well so far …

well maybe memcache,
https://docs.nextcloud.com/server/15/admin_manual/configuration_server/caching_configuration.html
include the config.php entry

install memcache in your distro and the php-memcache, i have APCu installed,
since this is installed, fly it… (nc 17.0)
try it…

there would be Ramdisk only disturb…

and if you want a bit dark theme,
https://blackysgate.de/files/folder-root/nextcloud/

well maybe memcache

i’ve already made all the settings in that link. memcache installed, and setup.

so after more tinkering i think i’ve got it. :smiley:

  1. i updated my nextcloud to 19.0. i was told on the overview page that i’m using an old version of PHP. indeed 17.2 was 4 years old. so i updated php to 7.4. i also updated mysql to 8.0 and apache to 2.4 and i already could see a vast improvement.

  2. i tuned php. i set script memory limit to -1 (i disabled it) and i setup opcache memory consumption to 4GB. i found out that i had to edit the php.ini file in the apache2 folder of php, not the cli.

  3. i tuned apache2 according to these guides:
    https://www.liquidweb.com/kb/apache-performance-tuning-mpm-directives
    https://www.tutsandtips.com/server/apache-localhost-loading-very-slow-here-is-the-solution

  4. i tuned mysql according to this guide here:
    https://www.tecmint.com/mysql-mariadb-performance-tuning-and-optimization

  5. i disabled IPv6 on the server

  6. i switched to the performance governor in cpufreq
    https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/power_management_guide/cpufreq_governors

  7. i also noticed that nextcloud is just much faster on chrome / chromium / vivaldi. i always use firefox to browser, but it seems that in this case there is a big difference in speed.

now the server is very fast. i’ll be checking it out for a few more days, but i think it should work.
funny that i solved my own problem, but at least other people who will have the same issue can just use this thread to figure it out.

AFTER A FEW DAYS
there is still a slight lag when i come back to nextcloud after a few hours for the first time, but it’s definitely much much better. and the next page loads are very fast. so i think all the settings above did help out.

just note that i am the only user on my server, and the server is dedicated to nextcloud. so depending on your situation, my solution might not work.

cheers guys! :slight_smile:

3 Likes

:+1: well Done :slight_smile:
i wish you many fun and a long lived Webserver :nerd_face: :blush:

1 Like

Thanks alot for your hints! Helped me a lot!

What I’ve found on other pages was this guide

This helped me also out very much.

For me was upgrading from 23.0.10.1 to 24.0.6.1
this mean because of upgrading the system or disabled apps (not compatible)
the situation
was none admin users when access the system was very slowwwwww
when check console reach more than million request (maybe as verbose)