Improve memory mangement in surefire plugin.