November 2017
Intermediate to advanced
398 pages
10h 14m
English
As you know every Java program runs in a new thread. Java supports multithreading so you can create as many threads as you like till you consume all the available memory for the JVM. Once the memory limit is reached, JVM native code can no longer create a new native thread from the underlying operating system. In order to identify the problem, you can take a thread dump and analyze it. If you are new to Java, you may be wondering what a thread dump is. You can refer to Chapter 3, Learning How to Troubleshoot Code where we have covered this section in more detail.
Please see the following example which will end up in throwing java.lang.OutOfMemoryError: unable to create new native ...
Read now
Unlock full access