Book Image

WildFly Performance Tuning

Book Image

WildFly Performance Tuning

Overview of this book

Table of Contents (17 chapters)
WildFly Performance Tuning
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Index

Large memory pages


Modern CPUs have a feature named large memory pages. This feature allows applications that require a lot of memory to make 2 to 4 MB-sized allocations instead of the standard 4 KB. Needless to say, this can improve the performance significantly for some applications. It can, however, also cause degraded performance when shortage of memory (that often occurs in systems with long uptime, where memory has become so fragmented that new memory reservations are not allowed) leads to excessive paging.

The large memory pages feature is available in the 64-bit JVM, where the parameter for enabling it is the following one:

-XX:+UseLargePages

By default, large memory pages is disabled in Java on most major platforms (Linux, OS X, and Windows) but enabled for some (such as Solaris). You will need to adapt your operating system settings accordingly.