adding resource thresholds whoch will trigger a worker restart.  currently based on mem usage