fix gc memory collection bug for statsd collection