November 2017
Intermediate to advanced
398 pages
10h 14m
English
As we saw in the earlier chapter, when the application loads up, Java heap space is created. If for some reason your application is not making old unused objects available to the garbage collector, all these objects are going to consume this limited available space leaving no space for new objects. Hence, when a new object creation request comes in, JVM throws the OutOfMemoryError exception.
Also, in a typical web application scenario, if your application’s traffic increases dramatically, it is going to consume all the available memory to serve these flooded requests. Hence, there will be a time when there won’t be any memory available to support new requests ...
Read now
Unlock full access