APM Server 7.17.25 crashes: fatal error: concurrent map iteration and map write

Thanks for letting me know that you have found a workaround for it. I can confirm that this specific piece of code is not present in 8.x versions, but unfortunately I cannot reproduce your issue in 7.17.25 in isolation.