PHP Error - Allowed memory exhausted
-
Hello team!!!!
I am beginner with pfsense
I just see the following error in my pfsense:
PHP ERROR: Type: 1, File: /usr/local/www/diag_command.php, Line: 186, Message: Allowed memory size of 536870912 bytes exhausted (tried to allocate 66 bytes) @ 2022-07-26 02:38:42
This was about 1 week ago and it seems that does not appears again. In dashboard, now, the memory appears with 11% used of 4 Gb.
Any suggestion?Regards!
Damián -
That error indicates something was run in Diag > Command Prompt that tried to generate a page and exhausted the memory available to php.
However it also shows it failed trying to allocate only 66 bytes so it could be the system had already exhausted the total RAM.
Check the historical memory usage in Status > Monitoring. Was is close to used?
Do you see any SWAP usage? That's usually a sign something is using all the RAM.Steve
-
@stephenw10
Thanks for your answer
In the memory graphic are the lines are about the same for a week, almost no variations.
I dont know how to ckeck the SWAP usage, sorry, how can I check this?Regards,
Damián -
It's shown on the dashboard. It should always be zero for most installs.
-
@stephenw10 It is 0 now, idk when the error ocurred
-
Just check to make sure it's not getting used after some time.
-
@stephenw10 Ok, thanks!