Do not use separated thread for apm test, avoid lost output.