Project

General

Profile

Actions

Bug #2063

closed

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

Added by Irving Popovetsky almost 13 years ago. Updated almost 12 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

Also available in: Atom PDF