You are not logged in.

Announcement

 Téléchargez la dernière version stable de GLPI      -     Et vous, que pouvez vous faire pour le projet GLPI ? :  Contribuer
 Download last stable version of GLPI                      -     What can you do for GLPI ? :  Contribute

#1 2022-06-22 14:29:05

AndreiJoda
Member
Registered: 2022-06-20
Posts: 4

How to increase the memory GLPI can use?

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

#2 2022-06-22 19:50:05

cconard96
Moderator
Registered: 2018-07-31
Posts: 2,809
Website

Re: How to increase the memory GLPI can use?

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

#3 2023-06-19 11:52:06

nasahmed
Member
Registered: 2023-06-03
Posts: 2

Re: How to increase the memory GLPI can use?

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

#4 2023-07-03 17:39:19

nasahmed
Member
Registered: 2023-06-03
Posts: 2

Re: How to increase the memory GLPI can use?

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

#5 2024-03-01 13:39:51

SamGates
Member
Registered: 2024-03-01
Posts: 1

Re: How to increase the memory GLPI can use?

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

Board footer

Powered by FluxBB