Simulating & troubleshooting BLOCKED threads in Kotlin

Опубликовано: 09 Май 2026
на канале: yCrash
128
1

In this series of simulating and troubleshooting performance problems in Kotlin, let’s discuss how to make threads go into BLOCKED state. A thread will enter into a BLOCKED state when it couldn’t acquire a lock on an object because another thread already holds the lock on the same object and doesn’t release it.

If you liked this video, you'll love our Java Performance Masterclass. Learn more:
https://ycrash.io/java-performance-tr...

- - - - - - - - - - - - - -

Topics covered:

00:40 - Sample Kotlin Blocked threads Program
04:33 - How to diagnose BLOCKED threads?
05:35 - yCrash root cause analysis report

- - - - - - - - - - - - - -

Links shared in the video:

Capture thread dump using one of the 8 options mentioned here:
https://blog.fastthread.io/2016/06/06...

Samurai:
https://github.com/yusuke/samurai

yCrash open source script:
https://github.com/ycrash/ycrash-agent

- - - - - - - - - - - - - -

Read more in this blog:

https://blog.ycrash.io/2022/10/17/sim...

- - - - - - - - - - - - - -

Our Tools:

yCrash: https://yCrash.io/
GCeasy: https://gceasy.io/
HeapHero: https://heaphero.io/
fastThread Tool: https://fastthread.io/

- - - - - - - - - - - - - -

SRE Community:

Need help in troubleshooting your performance problems?
Post here: https://answers.ycrash.io/

- - - - - - - - - - - - - -

Follow us on:

LinkedIn:   / ycrash  
Instagram:   / ycrash_rca  
Facebook:   / tier1app  
Twitter:   / tier1app  

- - - - - - - - - - - - - -

Related videos:

BuggyApp Demo:
   • BuggyApp Demo  

Simulating & troubleshooting OutOfMemoryError in Kotlin:
   • Simulating & troubleshooting OutOfMemoryEr...  

Simulating & troubleshooting StackOverflowError in Kotlin:
   • Simulating & troubleshooting StackOverflow...  

- - - - - - - - - - - - - -

#kotlin | #kotlincoroutines | #thread | #kotlincoroutinestutorial | #kotlincoroutinesvsthreads | #createsingletonsinkotlin | #multithreadinginpython | #multithreadinginchash | #multithreadinginjava | #kotlinnewthreadstart | #dispatchersinkotlincoroutines | #androidkotlinthreadexample | #kotlinnewthreadrun | #androidrunnableinthread | #multithreadinginctutorial | #threads | #coroutineinandroidkotlin | #kotlincoroutine | #howtouseasynctasksinkotlin