Skip to content

Commit

Permalink
update memory limit
Browse files Browse the repository at this point in the history
  • Loading branch information
fghrsh committed Dec 15, 2021
1 parent b2d034a commit 1f93f89
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/worker.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ function worker() {
} else sleep(1);
}
}
if (memory_get_usage() > 128 * 1024 * 1024) {
if (memory_get_usage() > 5 * 1024 * 1024) {
global $stop; $stop = true;
echo date('[Y-m-d H:i:s]').' Memory limit exceeded, stopping ...',"\n";
}
Expand Down

0 comments on commit 1f93f89

Please sign in to comment.