Home
Help
Search
Login
Register
OPNsense Forum
»
English Forums
»
General Discussion
»
Allowed memory size of 1073741824 bytes exhausted for opnsense 24.1
« previous
next »
Print
Pages: [
1
]
Author
Topic: Allowed memory size of 1073741824 bytes exhausted for opnsense 24.1 (Read 3519 times)
Azgar
Newbie
Posts: 8
Karma: 1
Allowed memory size of 1073741824 bytes exhausted for opnsense 24.1
«
on:
May 02, 2024, 12:45:15 pm »
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.
«
Last Edit: May 02, 2024, 12:50:10 pm by Azgar
»
Logged
Patrick M. Hausen
Hero Member
Posts: 6855
Karma: 575
Re: Allowed memory size of 1073741824 bytes exhausted for opnsense 24.1
«
Reply #1 on:
May 02, 2024, 12:56:34 pm »
Probably - I have not tested, in
/usr/local/etc/php.ini
change:
Code:
[Select]
memory_limit = 1G
to
Code:
[Select]
memory_limit = 2G
and restart the WebUI service.
HTH,
Patrick
Logged
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do.
(Isaac Asimov)
franco
Administrator
Hero Member
Posts: 17672
Karma: 1613
Re: Allowed memory size of 1073741824 bytes exhausted for opnsense 24.1
«
Reply #2 on:
May 02, 2024, 01:01:37 pm »
How many routes do you have? oO
Cheers,
Franco
Logged
Azgar
Newbie
Posts: 8
Karma: 1
Re: Allowed memory size of 1073741824 bytes exhausted for opnsense 24.1
«
Reply #3 on:
May 02, 2024, 02:21:02 pm »
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
«
Last Edit: May 02, 2024, 04:11:50 pm by Azgar
»
Logged
Azgar
Newbie
Posts: 8
Karma: 1
Re: Allowed memory size of 1073741824 bytes exhausted for opnsense 24.1
«
Reply #4 on:
May 02, 2024, 05:00:57 pm »
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?
Logged
volrath87
Newbie
Posts: 7
Karma: 0
Re: Allowed memory size of 1073741824 bytes exhausted for opnsense 24.1
«
Reply #5 on:
May 10, 2024, 09:42:37 am »
Same for me .. Do you have any fix?
Logged
franco
Administrator
Hero Member
Posts: 17672
Karma: 1613
Re: Allowed memory size of 1073741824 bytes exhausted for opnsense 24.1
«
Reply #6 on:
May 14, 2024, 12:12:21 pm »
Hi,
This was fixed today:
https://github.com/opnsense/core/commit/cf03557581b
# opnsense-patch cf03557581b
Cheers,
Franco
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
English Forums
»
General Discussion
»
Allowed memory size of 1073741824 bytes exhausted for opnsense 24.1