Skip to content

Commit 45648e4

Browse files
committed
[TASK] Incorrect minimum memory_limit references have been updated from 768M to 756M
1 parent 08f0056 commit 45648e4

File tree

7 files changed

+11
-11
lines changed

7 files changed

+11
-11
lines changed

.htaccess

+2-2
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
############################################
3737
## adjust memory limit
3838

39-
php_value memory_limit 768M
39+
php_value memory_limit 756M
4040
php_value max_execution_time 18000
4141

4242
############################################
@@ -59,7 +59,7 @@
5959
############################################
6060
## adjust memory limit
6161

62-
php_value memory_limit 768M
62+
php_value memory_limit 756M
6363
php_value max_execution_time 18000
6464

6565
############################################

.htaccess.sample

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
############################################
3636
## adjust memory limit
3737

38-
php_value memory_limit 768M
38+
php_value memory_limit 756M
3939
php_value max_execution_time 18000
4040

4141
############################################

.user.ini

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
memory_limit = 768M
1+
memory_limit = 756M
22
max_execution_time = 18000
33
session.auto_start = off
44
suhosin.session.cryptua = off

app/code/Magento/SampleData/Console/Command/SampleDataDeployCommand.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -136,8 +136,8 @@ private function updateMemoryLimit()
136136
if (function_exists('ini_set')) {
137137
@ini_set('display_errors', 1);
138138
$memoryLimit = trim(ini_get('memory_limit'));
139-
if ($memoryLimit != -1 && $this->getMemoryInBytes($memoryLimit) < 768 * 1024 * 1024) {
140-
@ini_set('memory_limit', '768M');
139+
if ($memoryLimit != -1 && $this->getMemoryInBytes($memoryLimit) < 756 * 1024 * 1024) {
140+
@ini_set('memory_limit', '756M');
141141
}
142142
}
143143
}

nginx.conf.sample

+2-2
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ location ~* ^/setup($|/) {
4141
fastcgi_pass fastcgi_backend;
4242

4343
fastcgi_param PHP_FLAG "session.auto_start=off \n suhosin.session.cryptua=off";
44-
fastcgi_param PHP_VALUE "memory_limit=768M \n max_execution_time=600";
44+
fastcgi_param PHP_VALUE "memory_limit=756M \n max_execution_time=600";
4545
fastcgi_read_timeout 600s;
4646
fastcgi_connect_timeout 600s;
4747

@@ -168,7 +168,7 @@ location ~ (index|get|static|report|404|503)\.php$ {
168168
fastcgi_buffers 1024 4k;
169169

170170
fastcgi_param PHP_FLAG "session.auto_start=off \n suhosin.session.cryptua=off";
171-
fastcgi_param PHP_VALUE "memory_limit=768M \n max_execution_time=18000";
171+
fastcgi_param PHP_VALUE "memory_limit=756M \n max_execution_time=18000";
172172
fastcgi_read_timeout 600s;
173173
fastcgi_connect_timeout 600s;
174174

pub/.htaccess

+2-2
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
############################################
3838
## Adjust memory limit
3939

40-
php_value memory_limit 768M
40+
php_value memory_limit 756M
4141
php_value max_execution_time 18000
4242

4343
############################################
@@ -60,7 +60,7 @@
6060
############################################
6161
## Adjust memory limit
6262

63-
php_value memory_limit 768M
63+
php_value memory_limit 756M
6464
php_value max_execution_time 18000
6565

6666
############################################

pub/.user.ini

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
memory_limit = 768M
1+
memory_limit = 756M
22
max_execution_time = 18000
33
session.auto_start = off
44
suhosin.session.cryptua = off

0 commit comments

Comments
 (0)