Still on Drupal 7? Security support for Drupal 7 ended on 5 January 2025. Please visit our Drupal 7 End of Life resources page to review all of your options.
Awhile back I had a content type for radio audio shows that had a field collection for Segments to describe sections of the radio show and I used computed field to get the titles from the referenced field collection to list a Segment Summary of the radio show segments.
If I understand the Drupal code, it has defined routing. So all the required paths are coded using these routing.yaml files. However if a request comes in with some junk path (example https://www.mysite.com/arbitrary/req), it still has to hit the index.php and hit the database (if I understand correctly). This creates a problem if some requester is calling my site with hundreds of request with this junk requirement, my database connections are all choked.
Since I upgraded to Drupal 11 I am seeing this problem almost every time I run cache-clear from admin menu.
It runs for a very very long time and frequently ends in this error message:
The website encountered an unexpected error. Try again later.
PDOException: SQLSTATE[HY000] [1203] User xxxxx already has more than 'max_user_connections' active connections in Drupal\Component\DependencyInjection\PhpArrayContainer->createService() (line 77 of core/lib/Drupal/Component/DependencyInjection/PhpArrayContainer.php).