Thanks for the imput so far. A lot of good tips.
So I will try to find out more information about the current configuration, make adjustments and report here.
I checked for errors in the different Forums-ACPs and some of the forums had in the past the alert:
already has more than 'max_user_connections' active
connections
src/XF/Db/Mysqli/Adapter.php:165
I did not take this as urgent since it happened seldom and only on the real heavy traffic sites.
So I asked my webhoster to increase that number for all DB of all forums to 100 for each DB. They did not tell me the number it was beforehand but since they offered me 50 or 100, my guess is that it was beforehand at 25.
The webhoster increased it 2 hours ago to 100 for each DB and my impression is, that the sites are all now faster.
Could that be already the main cause of the trouble?
Additionally you have standard HDD's and not ssd's or nvmes? This alone will be a huge bottleneck.
SSD is at the moment no option. Only HD available.
I am curious how your web server is configured? What are you using to serve the site?
Apache? Mod PHP? PHP-FPM? Redis? MySQL/MariaDB? Nginx?
Are all of your configuration files for the web server the same for each site? (minus changes to root folders per install, obviously)
Yes
You do not want hyperthreading on for MySQL. Hyperthreading
I have only 2 cores.
The server details are:
Intel® Core™ i3-7100
2 Cores 3,9GHz
Hyper-Threading
8 GB RAM
1 TB HDD (RAID 1)
Ultimately the number of installations is a meaningless number. The number of simultaneous HTTP and DB connections, the read hit rate stats in the database, swap space used, the system swappiness settings (most leave it at the default 60 which is not suited for servers). - metrics ultimately tell more but there's no indication from the OP they did a deep analysis (which is to be expected, the hourly cost of doing this versus telling the client to upgrade isn't worth it to most hosts).
This is what I try to find out now. I asked this my webhoster and wait for its answer.
make sure you take advantage of XF's caching system.
Where do I set this up in ACP?
I'd also recommend installing memcache if you are not already using it. It will make a significant difference.
How can I find out myself whether memcache is installed already? I do not have a root server. It is a managed server (but no shared server).
...who kept increasing max_connections because he was running out of connections, and his system slowing down to a crawl to the point it would finally crash. Increasing the connections was making the problem worse because it was hitting swap space hard.
I have to find that out now, because the webhoster increased it to 100 for each DB. But at the moment the sites seems to be faster than before.
Another potential cause for this could be images. I have on many forums a lot of images. At the moment the settings in ACP are to use ImageMagick. On all forums. Should I rather opt for GD?
I had the impression in the past, that ImageMagick delivers the images with better quality. But if this is a bottle neck, I would rather switch to GD to speed things up.