In the series of chaos engineering articles, we have been learning to simulate various performance problems. In this post, let’s discuss how to simulate thread leaks. ‘java.lang.OutOfMemoryError: unable to create new native thread’ will be thrown when more threads are created than the memory capacity of the device. When this error is thrown, it will disrupt the application’s availability.
Sample Program
Here is a sample program from the open source BuggyApp application, which keeps creating an infinite number of threads.
from DZone.com Feed https://ift.tt/3aQvhk6
No comments:
Post a Comment