added checking of memory usage and open fds on workers