Bug #2063
closedPHP Memory Usage too high for 128MB RAM Systems (like ALIX)
0%
Description
From the discussion on this forum thread: http://forum.pfsense.org/index.php/topic,44239.0.html
Several issues on 128MB RAM embedded systems (like ALIX 2D3):- Not enough memory to complete all boot processes ( pid 260 (php), uid 0, was killed: out of swap space - results in incorrectly generated gettytab, others )
- Not enough memory to support 2 web configurator processes
Regarding issue #1, my quick fix was to disable APC in rc.php_ini_setup but there might be better solutions like throttling or reducing the number of simultaneous PHP processes that can run at boot time.
My solutions for stable operation on 128MB RAM:- Disable APC: Edit /etc/rc.php_ini_setup, line 249. Change the $RAM threshold from gt 96 to GT 135MB. (I can submit a proper patch if you want, but it's just a 1-liner)
- Change the number of web configurator processes to 1 (can we make this the default on smaller RAM systems?)
Updated by Irving Popovetsky over 12 years ago
Pull request for solution #1 here: https://github.com/bsdperimeter/pfsense/pull/74
Regarding #2 (auto-set the number of web configurator processes to 1): I haven't yet figured out where this lives in the code, but if somebody can point me in the right direction I'll generate a patch for that one as well.
Updated by Chris Buechler over 12 years ago
- Description updated (diff)
I'm not sure where it is in the code offhand, but it's configured under System>Advanced and should be easy to track back from there. thanks!
Updated by Irving Popovetsky over 12 years ago
Pull request to set the number of web configurator processes to 1 on ALIX systems with 256MB RAM or less
Updated by Irving Popovetsky over 12 years ago
pull request attempt number 2: https://github.com/bsdperimeter/pfsense/pull/106
Updated by Renato Botelho almost 12 years ago
- Status changed from New to Feedback
Could you please confirm it fixed the issue?
Updated by Chris Buechler almost 12 years ago
- Status changed from Feedback to Resolved
this is much improved after a number of 2.1 changes.