You are not logged in.
Pages: 1
I already changed the memory size in php.ini to 512MB but I don't know why the GLPI memory doesn't go beyond 128MB.
Is there any other configuration I can do?
Offline
Did you remember to restart the web server after changing the PHP config? Also, did you change the PHP config associated with the web server instead of the command line?
For example, under Debian/Ubuntu the config wanted is "/etc/php/8.1/apache2/php.ini" assuming PHP version 8.1.
Then, restart Apache with "sudo systemctl restart apache2".
GLPI Collaborator and Plugin Developer.
My non-English comments are automated translations. Sorry for any confusion that causes.
Mes commentaires non anglais sont des traductions automatiques. Désolé pour toute confusion qui cause.
Mis comentarios que no están en inglés son traducciones automáticas. Perdón por cualquier confusión que cause.
Offline
I have tried in Oracle Linux 8.7. I have increased the memory size in php.ini to 512 MB and restarted the httpd service but from the GLPI gui doesn't reflect. I have used PHP 8.2.6
Trace
[root@localhost~]# php -i | grep memory_limit
memory_limit => 512M => 512M
[root@localhost ~]# php -r "var_dump(ini_get('memory_limit'));"
string(4) "512M"
Offline
I have found the solution. Here we need to update /etc/php.d/10-opcache.ini file
; The OPcache shared memory storage size.
opcache.memory_consumption=512 (comment outed the line)
and the php.ini file as well. I have set memory limit as 1G.
Trace
[root@localhost~]# php -i | grep memory_limit
memory_limit => 1G => 1G
[root@localhost ~]# php -r "var_dump(ini_get('memory_limit'));"
string(4) "1G"
Service Restart required
Apache/httpd and php-fpm.service
Offline
If anyone else runs in to this - the settings I found in php.ini which worked were 'memory_limit' and 'opcache.memory_consumption'. I adjusted the memory_limit to 512 (probably daftly excessive) and the opcache.memory_consumption to 256. 256 is then reflected in the as the available memory under Setup > General > Performance. I did this because the memory appeared to always be close to maxing out and giving a yellow warning
Last edited by SamGates (2024-03-01 13:42:31)
Offline
Pages: 1