Dear all,
I don’t really know if this fits in this forum and it’s not really a big problem, but I wanted to know if it’s possible to solve 
I set up my Raspberry 3B+ with Nextcloud (Web installer after installing all depencies and configuring) and everything runs perfect. I also set up HTTPS with a dyndns domain.
I now also bought a little fan, because CPU temp was around 56°C, now I have around 44°C with everything running (37°C on fresh install)
I now noticed in htop that Apache uses around 64% of CPU the most time, sometimes falls to 10% or below.
First question: Is this normal with that configuration? Second: If not, what causes it? If I can save some degrees of temperature it would be nice.
I set the LogLevel to Debug and noticed that these 3 lines appear twice a second, seems something constantly asks for access and this maybe causes the cpu usage?
[Thu Mar 23 00:02:54.672761 2023] [ssl:debug] [pid 4532] ssl_engine_kernel.c(415): [client 84.160.151.175:52810] AH02034: Subsequent (No.44) HTTPS request received for child 3 (server dyn.dns.domain:443)
[Thu Mar 23 00:02:54.673941 2023] [authz_core:debug] [pid 4532] mod_authz_core.c(815): [client 84.160.151.175:52810] AH01626: authorization result of Require all granted: granted
[Thu Mar 23 00:02:54.679797 2023] [authz_core:debug] [pid 4532] mod_authz_core.c(815): [client 84.160.151.175:52810] AH01626: authorization result of : granted
I’m not really a noob on Linux and webservers, but I never ran it before on a Raspberry, so this wasn’t really a thing. And when it comes to HTTPS and virtual hosts I’m not really an expert on what they should do and what not 
Thanks in advance for help, let me know if you need some other logs.
I would say it’s normal for the majority of CPU usage to be Apache since the web server is really what drives the whole platform, apart from the database.
Whether 64% is normal, I can just say that Nextcloud will push the limits of a RPi, and even more so for an older model. That may just be all the juice it has.
1 Like
Ok thank you, then I can’t change that 
I got NC26 installed with a lot of apps on my Pi4, and it usually is below 1% CPU usage when not needed. With the cron running for NC, it sometimes goes up to around 8 percent, then drops a few minutes later again until the next cronjob. I would say, that even for a Pi3 your 64% are too high. What apps do you have installed?
Recognize recently had some CPU flaws and hogging ressources quite hefty. Don’t know if this is fixed by now, I deactivated it and use Facerecognition instead.
I just did the example installation for ubuntu (Example installation on Ubuntu 22.04 LTS — Nextcloud latest Administration Manual latest documentation), after that the apache configuration (Installation on Linux — Nextcloud latest Administration Manual latest documentation) and did use the web installer instead of the tar archive, then installed the recommended apps (not more until now) and them some server tuning as per manual (apcu and redis, transactional file locking, database and php opcache)
I tried to get Apache mod status working yesterday and today, but because of the whole rewriting and .htaccess I’m not able to get /server-status working.
I also tried to get another vhost working to display the apache status, but it doesn’t work.
Can you tell me how it’s possible?
Did you check system stats already, like iostat and htop to find out what is using so much cpu power? I do not think that the built in system-status would bring you any further. Did you every try to run apache without nextcloud? Just for a regular website or such?
I don’t really know what happened, but I monitored the cpu usage a little bit and also got the server-status page running. If I don’t use the Nextcloud page, CPU usage is around 5-8 percent, so everything ok now 
But I didn’t change anything, maybe I was too dumb and used the cloud in the background while I was monitoring the usage…
Thanks for your help!