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. Sample Program Here is a sample Scala program, which generates the StackOverflowError: package com.yc class StackOverflowApp { } object StackOverflowApp ...