Understanding memory errors
Concurrent collection mode is available as a separate option, and also forms part of the package in the G1GC, which uses several techniques to reduce pause times without affecting the efficiency of the garbage collection. An OutOfMemoryError exception occurs when over 98 percent of the time is already spent performing garbage collection, while only 2 percent of the heap is recollected from the operation.
This out-of-memory feature is important, since otherwise, a program will continue for longer periods without performing any useful garbage collection. This will result in causing long stop-the-watch pauses, especially on JVMs that have a small heap available to them.
Problems may occur when a program uses the available ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access