1. Overview In this quick tutorial, we’ll explore the most well-known options which can be used to configure the Java Virtual Machine. 2. Explicit Heap Memory – Xms and Xmx Options One of the most common performance-related practices is to initialize the heap memory as per the application requirements. That’s why we should specify minimal and maximal heap size. Below parameters can be used for achieving it: 1-Xms<heap size="">[unit] 2-Xmx<heap size="">[unit] 3</heap></heap> Here, unit denotes the unit in which the memory (indicated by heap size) is to be initialized. Units can be marked as ‘g’ for GB, ‘m’ for MB and ‘k’ for KB. For example, if we want to assign minimum 2 GB and maximum 5 GB to JVM, we need to write: 1-Xms2G……
Continue reading