In this series of simulating and troubleshooting performance problems in Scala, let’s discuss how to simulate the ‘java.lang.OutOfMemoryError: Java Heap space’ problem. ‘java.lang.OutOfMemoryError: Java Heap space’ will be thrown by the Scala application, when it generates more objects than the maximum configured heap size.
If you liked this video, you'll love our Java Performance Masterclass. Learn more:
https://ycrash.io/java-performance-tr...
- - - - - - - - - - - - - -
Topics covered:
00:25 - Sample Scala OOMError Program
02:24 - How to troubleshoot OutOfMemoryError?
04:04 - yCrash root cause analysis report
- - - - - - - - - - - - - -
Links shared in the video:
Capture heap dump using one of the 7 approaches given here:
https://blog.heaphero.io/2017/10/13/h...
jHat:
https://docs.oracle.com/javase/8/docs...
yCrash open source script:
https://github.com/ycrash/ycrash-agent
- - - - - - - - - - - - - -
Read more in this blog:
https://blog.ycrash.io/2022/10/18/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 StackOverflowError in Scala
• Simulating & troubleshooting StackOverflow...
Simulating & troubleshooting BLOCKED threads in Scala:
• Simulating & troubleshooting BLOCKED threa...
- - - - - - - - - - - - - -
#scala | #scalaprogramminglanguage | #trymonadinscala | #tryvstryinscala | #scalatutorial | #memorymanagementinjavainterviewquestions | #memorymanagementinjava | #memorymanagementinjavajavatpoint | #higherorderfunctionsinscala | #memorymanagementinjava8 | #exceptionhandlinginsparkscala | #throwcustomexceptioninscala | #methodcallsinscala | #stackandheapmemorymanagementinjava | #sparkscala | #scala | #functioncallsinscala