worker-restart-memory-limit

Size threshold at which to consider restarting a worker

Syntax

--worker-restart-memory-limit size

Description

worker-restart-memory-limit sets the memory usage limit of a worker process. If a worker's working set size exceeds worker-restart-memory-limit for an interval of time greater than worker-restart-memory-limit-interval, then that worker is restarted.

Parameters

size

Amount of memory used by worker.

Examples

Restart any worker whose working set size exceeds 1 GB for more than 1 hour.

--worker-restart-memory-limit 1GB
--worker-restart-memory-limit-interval 1:00:00