KCFinder crashes with Thumbnails enabled, large number of images, php-fpm enabled
After php-fpm was enabled a client site soon crashed when browsing images - replicable many times by simply editing an event info page in the rich text editor, clicking the image icon then 'Browse Server'.
Top -c shows dozens of php-fpm processes running and server load > 50 until it crashes There are ~2000 image files whci appear to include system generated variants. The only resolution was to change Thumbnails to List mode (to change I had to temporarily move images out) CiviCRM v 5.40.2 php 7.2 Ubuntu 18.04
On a copy of the server with php-fpm disabled, thumbnails appears to work but still creates a lot of processes whle generating thumbnails /usr/lib/cgi-bin/php7.2
Does anyone have experience of this issue? I don't see another issue like it here https://github.com/sunhater/kcfinder/issues
KCFinder is apparently a 'free open-source replacement of CKFinder'
- however it is 7 years old - wondering whether there's a more up to date solution that is more performant with a large number of images
Hope this provides enaough info for someone to be able to investigate further - thanks.