Skip to main content
Question

Error: Allowed memory size bytes exhasuted

  • December 10, 2024
  • 9 replies
  • 60 views

ensenada
Forum|alt.badge.img+7

Hello,

Centreon 24.04

I have configure an script to check the memory consume of IIS App Pools.

In graph tab i can see the 1 day graphic, but if a click on 7 days i got this error:

I have seen this post but I dont know if is the same case.

Thanks,

9 replies

ponchoh
Centreonian
Forum|alt.badge.img+14
  • Centreonian
  • December 10, 2024

Hello ​@ensenada , I see you tried the great post by ​@Sébastien 

Did you restart PHP?


ensenada
Forum|alt.badge.img+7
  • Author
  • Steward ***
  • December 11, 2024

I have not yet made any changes, I have this php.ini files:

/etc/php/8.1/apache2/php.ini
/etc/php/8.1/cli/php.ini
/etc/php/8.1/fpm/php.ini

is supposed to be changed in /etc/php/8.1/apache2/php.ini ?

Thanks,


ponchoh
Centreonian
Forum|alt.badge.img+14
  • Centreonian
  • December 11, 2024

Oh, OK

So we need to edit your 

/etc/php/8.1/apache2/php.ini

restart php and verify

systemctl restart php-fpm

php -i | grep "memory_limit"

 


ensenada
Forum|alt.badge.img+7
  • Author
  • Steward ***
  • December 11, 2024

Oh, OK

So we need to edit your 

/etc/php/8.1/apache2/php.ini

restart php and verify

systemctl restart php-fpm

php -i | grep "memory_limit"

 

I have restart php with this command:

systemctl restart php8.1-fpm

And

php -i | grep "memory_limit"
memory_limit => -1 => -1

 

Its correct ?

 

I have tried to check the 7 days and still have the error.


ponchoh
Centreonian
Forum|alt.badge.img+14
  • Centreonian
  • December 11, 2024

Might be better to assign an exact number, in any case. Which micro version are you using? have the number of metrics changed?


ensenada
Forum|alt.badge.img+7
  • Author
  • Steward ***
  • December 12, 2024

I have set 256mb.

I don't know what you mean by micro version


ponchoh
Centreonian
Forum|alt.badge.img+14
  • Centreonian
  • December 12, 2024

The micro I mean

24.04.?

The last part, to make sure you have the latest.


ensenada
Forum|alt.badge.img+7
  • Author
  • Steward ***
  • December 12, 2024

24.04.2


ponchoh
Centreonian
Forum|alt.badge.img+14
  • Centreonian
  • December 17, 2024

@ensenada did you try the latest? 24.04.8