Commit a0b1e854 authored by Franco Fichtner's avatar Franco Fichtner

src: raise memory limit to 256MB for everyone

128M has some crash reports attached, but "modern" i386 systems
have more RAM to spare, too.  Also remove two old expansions to
64M, which are now restrictions, because when they were introduced
the memory limit was 32M.  ;)
parent e54b7a06
......@@ -27,16 +27,12 @@
POSSIBILITY OF SUCH DAMAGE.
*/
// Set the memory limit to 128M on i386. When someone has something like 500+ tunnels
// the parser needs quite a bit of ram. Do not remove this line unless you
// know what you are doing. If in doubt, check with dev@ _/FIRST/_!
// Set memory limit to 256M on amd64.
if(php_uname("m") == "amd64") {
ini_set("memory_limit","256M");
} else {
ini_set("memory_limit","128M");
}
/*
* Set the memory limit. When someone has something like 500+
* tunnels the parser needs quite a bit of RAM. Do not remove
* this line unless you know what you are doing.
*/
ini_set('memory_limit', '256M');
/* include globals from notices.inc /utility/XML parser files */
require_once('config.lib.inc');
......
......@@ -36,11 +36,6 @@ require_once("pfsense-utils.inc");
require_once("interfaces.inc");
require_once("services.inc");
/* Fix failover DHCP problem
* http://article.gmane.org/gmane.comp.security.firewalls.pfsense.support/18749
*/
ini_set("memory_limit","64M");
$if = $_GET['if'];
if ($_POST['if'])
$if = $_POST['if'];
......
<?php
/*
Copyright (C) 2014-2015 Deciso B.V.
Copyright (C) 2003-2004 Manuel Kasper <mk@neon1.net>.
......@@ -31,11 +32,6 @@ require_once("guiconfig.inc");
require_once("services.inc");
require_once("interfaces.inc");
/* Fix failover DHCP problem
* http://article.gmane.org/gmane.comp.security.firewalls.pfsense.support/18749
*/
ini_set("memory_limit","64M");
$if = $_GET['if'];
if ($_POST['if'])
$if = $_POST['if'];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment