caprenter / lamrt

GNU General Public License v3.0
0 stars 0 forks source link

Live site is giving out of memory errors when create a 'people' resource. #9

Closed caprenter closed 2 years ago

caprenter commented 2 years ago

To recreate:

Login - Content - add new - Resource - (try to create and save a Person resource with a main image.

These are the errors: Fatal error: Out of memory (allocated 109051904) (tried to allocate 20480 bytes) in /var/www/lamrt.org.uk/web/core/lib/Drupal/Core/Cache/DatabaseBackend.php on line 167

Fatal error: Out of memory (allocated 109051904) (tried to allocate 20480 bytes) in /var/www/lamrt.org.uk/web/core/lib/Drupal/Core/Database/Query/Condition.php on line 320

Warning: Undefined array key 0 in /var/www/lamrt.org.uk/web/core/lib/Drupal/Core/Utility/Error.php on line 117

Fatal error: Out of memory (allocated 109051904) (tried to allocate 65536 bytes) in /var/www/lamrt.org.uk/vendor/composer/ClassLoader.php on line 571

caprenter commented 2 years ago

We fixed this by restricting the available memory in the docker-compose file (Mysql 512MB, Drupal 384MB)