Next cloud not responding

Shortly after the server starts up as soon as the request is made to next cloud as far as I can tell the PHP script never completes (/index.php) what wines have happening is all of the PHP fpm workers are being devoted to the cloud causing the whole server to freeze.
Running the latest version of next cloud,
PHP8.0-fpm,
And apache2.
I tried enabling maintenance mode and it didn’t seem to change anything.
Let me know if you need more details.
Edit:
The Apache error log is just filled with hundreds of lines of this:

[Wed Sep 14 20:49:52.800193 2022] [proxy_fcgi:error] [pid 491610:tid 139890614241024] (70007)The timeout specified has expired: [client 127.0.0.1:43062] AH01075: Error dispatching request to : (polling)

Also here are some things that I did recently with the install:
Installed face recognition app and ran the background job (I have a lot of pictures on this install and I noticed that it became very sluggish after I ran the face recognition. My theory is maybe the database is very large to process?)
Fixed cron jobs (so they actually run now)
Updated to the latest version

okay so I fixed it by adding more php-fpm children and adding memcache and redis