automatically adjust asm heap size