https://kotlinlang.org logo
#coroutines
Title
# coroutines
p

Peter Kievits

07/14/2022, 10:02 AM
A few days I came across an issue with one of our services in a test environment, where we effectively had a deadlock in our coroutine setup. This took a while to track down as nothing showed in the jvm thread dump. Only after inserting lots of log statements and staring at the code was I able to track down the issue. Looking back on this now, it would have been very useful to be able to get some information on the coroutine state out of the running application. Is there any tooling available that would have helped in this instance? Is there something we could do to get thread dump like information of all active and suspended coroutines?
p

Peter Kievits

07/14/2022, 10:28 AM
That would be useful, thanks!
4 Views