Java production systems can face two critical errors: StackOverflowError and OutOfMemoryError: Unable to create new native threads. The former occurs due to excessive execution depth in thread stacks, while the latter results from hitting native memory or OS thread limits. Both stem from thread stack memory usage, requiring careful diagnosis and proactive management.
Simulating & troubleshooting StackOverflowError in Scala
In this series of simulating and troubleshooting performance problems in Scala, let’s discuss how to simulate StackOverflowError. StackOverflowError is a runtime error, which is thrown, when a thread's stack size exceeds its allocated memory limit. Video: To see the visual walk-through of this post, click below: https://youtu.be/PxfWuBEBcW8 Sample Program Here is a sample Scala program,... Continue Reading →
VIRTUAL MACHINE ERROR
Java.lang.VirtualMachineError is thrown when Java virtual machine encounters any internal error or resource limitation which prevents it from functioning. It's a self-defensive mechanism employed by JVM to prevent entire application from crashing. In this article lets discuss different types of VirtualMachineError, their characteristics, reasons why they get triggered and potentials solutions to fix them. Types... Continue Reading →
