Some more places were we check now
This commit is contained in:
@@ -71,6 +71,11 @@ function poller_run($argv, $argc){
|
||||
|
||||
while ($r = poller_worker_process()) {
|
||||
|
||||
// Check free memory
|
||||
if ($a->min_memory_reached()) {
|
||||
return;
|
||||
}
|
||||
|
||||
// Count active workers and compare them with a maximum value that depends on the load
|
||||
if (poller_too_much_workers()) {
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user