Hello @ Friendica Support 😀
I have an error that is popping up in the logs. I am not sure how to address it. I have tried to increase the amount of memory allocated to PHP. I have increased it from 128M (the default) to 1G. This did not make any difference. The server has 8G for the operating system. My question is, where can I adjust the memory settings to resolve this error with Database.php?
Here is the error message that I am getting along with information from Overview and my PHP info.
Thanks in advance for any help you can provide 🙂
Error Message
worker Fatal Error (E_ERROR): Allowed memory size of 134217728 bytes exhausted (tried to allocate 23085056 bytes)
Event details
code
1
message
Allowed memory size of 134217728 bytes exhausted (tried to allocate 23085056 bytes)
file
/var/www/html/src/Database/Database.php
line
541
trace
Source
file
line
function
request-id 67d04af996b3a
stack ErrorHandler::handleFatalError
uid 840d6a
process_id 375312
-=-=-=-=-
Overview
Version
Friendica 'Interrupted Fern' 2024.12 - 1577
Server Settings
PHP
version 8.2.26
php.ini /etc/php/8.2/apache2/php.ini
upload_max_filesize 8M
post_max_size 16M
memory_limit 1G
MySQL / MariaDB
max_allowed_packet 16777216
-=-=-=-
PHP Info
PHP Version 8.2.26
System Linux Friendica 6.5.11-7-pve #1 SMP PREEMPT_DYNAMIC PMX 6.5.11-7 (2023-12-05T09:44Z) x86_64
Build Date Nov 25 2024 17:21:51
Build System Linux
Server API Apache 2.0 Handler
Virtual Directory Support disabled
Configuration File (php.ini) Path /etc/php/8.2/apache2
Loaded Configuration File /etc/php/8.2/apache2/php.ini
Scan this dir for additional .ini files /etc/php/8.2/apache2/conf.d
Additional .ini files parsed /etc/php/8.2/apache2/conf.d/10-mysqlnd.ini, /etc/php/8.2/apache2/conf.d/10-opcache.ini, /etc/php/8.2/apache2/conf.d/10-pdo.ini, /etc/php/8.2/apache2/conf.d/15-xml.ini, /etc/php/8.2/apache2/conf.d/20-calendar.ini, /etc/php/8.2/apache2/conf.d/20-ctype.ini, /etc/php/8.2/apache2/conf.d/20-curl.ini, /etc/php/8.2/apache2/conf.d/20-dom.ini, /etc/php/8.2/apache2/conf.d/20-exif.ini, /etc/php/8.2/apache2/conf.d/20-ffi.ini, /etc/php/8.2/apache2/conf.d/20-fileinfo.ini, /etc/php/8.2/apache2/conf.d/20-ftp.ini, /etc/php/8.2/apache2/conf.d/20-gd.ini, /etc/php/8.2/apache2/conf.d/20-gettext.ini, /etc/php/8.2/apache2/conf.d/20-gmp.ini, /etc/php/8.2/apache2/conf.d/20-iconv.ini, /etc/php/8.2/apache2/conf.d/20-imagick.ini, /etc/php/8.2/apache2/conf.d/20-imap.ini, /etc/php/8.2/apache2/conf.d/20-intl.ini, /etc/php/8.2/apache2/conf.d/20-mbstring.ini, /etc/php/8.2/apache2/conf.d/20-mysqli.ini, /etc/php/8.2/apache2/conf.d/20-pdo_mysql.ini, /etc/php/8.2/apache2/conf.d/20-phar.ini, /etc/php/8.2/apache2/conf.d/20-posix.ini, /etc/php/8.2/apache2/conf.d/20-readline.ini, /etc/php/8.2/apache2/conf.d/20-shmop.ini, /etc/php/8.2/apache2/conf.d/20-simplexml.ini, /etc/php/8.2/apache2/conf.d/20-sockets.ini, /etc/php/8.2/apache2/conf.d/20-sysvmsg.ini, /etc/php/8.2/apache2/conf.d/20-sysvsem.ini, /etc/php/8.2/apache2/conf.d/20-sysvshm.ini, /etc/php/8.2/apache2/conf.d/20-tokenizer.ini, /etc/php/8.2/apache2/conf.d/20-xdebug.ini, /etc/php/8.2/apache2/conf.d/20-xmlreader.ini, /etc/php/8.2/apache2/conf.d/20-xmlwriter.ini, /etc/php/8.2/apache2/conf.d/20-xsl.ini, /etc/php/8.2/apache2/conf.d/20-zip.ini
PHP API 20220829
PHP Extension 20220829
Zend Extension 420220829
Zend Extension Build API420220829,NTS
PHP Extension Build API20220829,NTS
Debug Build no
Thread Safety disabled
Zend Signal Handling enabled
Zend Memory Manager enabled
Zend Multibyte Support provided by mbstring
Zend Max Execution Timers disabled
IPv6 Support enabled
DTrace Support available, disabled
Registered PHP Streams https, ftps, compress.zlib, php, file, glob, data, http, ftp, phar, zip
Registered Stream Socket Transports tcp, udp, unix, udg, ssl, tls, tlsv1.0, tlsv1.1, tlsv1.2, tlsv1.3
Registered Stream Filters zlib.*, string.rot13, string.toupper, string.tolower, convert.*, consumed, dechunk, convert.iconv.*
Tobias
•Eric Schultz
•