Allowed memory size of 1073741824 bytes exhausted for opnsense 24.1

Started by Azgar, May 02, 2024, 12:45:15 PM

Previous topic - Next topic
Hello,

After an update of opnsense (23.7.8 -> 24.1) I have an error: "PHP Fatal error:  Allowed memory size of 1073741824 bytes exhausted (tried to allocate 1042288640 bytes) in /usr/local/opnsense/mvc/app/models/OPNsense/Routing/Migrations/M1_0_0.php on line 101" while the system memory is used at 22% (total 8 GB)

I have seen threads regarding this error. For version 22 there was a patch to apply.

Is it the same for version 24.1?

Thanks for your help.

Probably - I have not tested, in /usr/local/etc/php.ini change:
memory_limit = 1G
to
memory_limit = 2G

and restart the WebUI service.

HTH,
Patrick
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do. (Isaac Asimov)


Hello,

Thank you for your reply.

I tried to change the PHP memory from 1 to 2GB but the message still appears after repeating opnsense. Before restarting I cleared the error. I noticed that it reset the value to 1GB after restarting the web service

I don't have a static route but in "system->routes->status" I have 12 routes managed by the system in IPv4 and 3 in IPv6 but we don't use IPv6.

I have 4 interfaces, one of which is a gateway to another network

Hello,

I'm here to provide an update:

Concerning the php memory I modify it from the file "/usr/local/opnsense/service/templates/OPNsense/WebGui/php.ini" because "/usr/local/etc/php.ini" is based on this file.

after removing the error and restarting opnsense, the red dot still appears (red-point.png)



when I click on it there is no longer any report unlike before (report.png). is this normal?