[PATCH] header.pl: only get memory consumption when service is running