Skip to Content
Java 9 High Performance
book

Java 9 High Performance

by Mayur Ramgir, Nick Samoylov
November 2017
Intermediate to advanced
398 pages
10h 14m
English
Packt Publishing
Content preview from Java 9 High Performance

Heap sizing

The heap size refers to the memory allocated to different parts of your program. The heap sizes can be specified in your program using the command-line. The maximum heap size is that half of the available physical memory that may go up to 192 MB (megabytes). The capacity remains at one-fourth the value if the physical memory goes up to 1 GB (gigabyte).

In fact, the maximum heap size is seldom used by the JVM. It is only used when there are enough objects in the program to actually require additional memory. The JVM does not obtain the maximum amount at the start, as it may obtain resources that may not be required at all.

The lowest initial size is 8 MB, while it may have the value of 1/64 of the physical memory available up to ...

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.
Start your free trial

You might also like

Distributed Computing in Java 9

Distributed Computing in Java 9

Raja Malleswara Rao Malleswara Rao Pattamsetti
Mastering Java 11 - Second Edition

Mastering Java 11 - Second Edition

Dr. Edward Lavieri Jr., Mandar Jog
Java EE 8 High Performance

Java EE 8 High Performance

Romain Manni-Bucau
Clojure: High Performance JVM Programming

Clojure: High Performance JVM Programming

Eduardo Díaz, Shantanu Kumar, Akhil Wali

Publisher Resources

ISBN: 9781787120785Supplemental Content