Enabling Large Page Memory
2.3 Large Page Memory A memory page (also called a virtual page) is a fixed-length block of memory that is contiguous in addressing. Most modern operating systems have a default memory page size of 4K. To put that into perspective, with a server with 4Gb of memory, you would get almost 1 million addressable pages. Quite a large number to work with. If you think about that from a memory management perspective, that is quite a bit to keep aware of. Once we get into larger memory spaces, the amount of memory pages to keep track of would grow exceedingly large, leading to more resources being committed to that. Hence, large page memory is an effort to make the memory pages larger, resulting in larger contiguous blocks of memory (better for applications) and fewer memory pages to manage (better for JVM). To enable large page memory for the JVM, add the following to your command-line / script startup: -XX:+UseLargePages