prevent wgrcm from consuming too much memory