Project

General

Profile

Actions

Bug #2063

closed

PHP Memory Usage too high for 128MB RAM Systems (like ALIX)

Added by Irving Popovetsky almost 10 years ago. Updated almost 9 years ago.

Status:
Resolved
Priority:
Normal
Category:
Web Interface
Target version:
Start date:
12/23/2011
Due date:
% Done:

0%

Estimated time:
Plus Target Version:
Release Notes:
Affected Version:
2.0
Affected Architecture:

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):
  1. 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 )
  2. 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:
  1. 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)
  2. Change the number of web configurator processes to 1 (can we make this the default on smaller RAM systems?)
Actions #1

Updated by Irving Popovetsky over 9 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.

Actions #2

Updated by Chris Buechler over 9 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!

Actions #3

Updated by Irving Popovetsky over 9 years ago

Pull request to set the number of web configurator processes to 1 on ALIX systems with 256MB RAM or less

https://github.com/bsdperimeter/pfsense/pull/105

Actions #4

Updated by Irving Popovetsky over 9 years ago

Actions #5

Updated by Renato Botelho almost 9 years ago

  • Status changed from New to Feedback

Could you please confirm it fixed the issue?

Actions #6

Updated by Renato Botelho almost 9 years ago

  • Assignee set to Renato Botelho
Actions #7

Updated by Chris Buechler almost 9 years ago

  • Status changed from Feedback to Resolved

this is much improved after a number of 2.1 changes.

Actions

Also available in: Atom PDF