Documentation ¶
Index ¶
Constants ¶
View Source
const UnitG = 1024 * UnitM
UnitG is 1 Gigabyte
View Source
const UnitK = 1024
UnitK is 1 Kilobyte
View Source
const UnitM = 1024 * UnitK
UnitM is 1 Megabyte
Variables ¶
This section is empty.
Functions ¶
func FormatJvmHeapMinMax ¶
FormatJvmHeapMinMax returns the identical min and max JVM heap setting in the format Java expects like "-Xms2g -Xmx2g"
func FormatJvmHeapSize ¶
FormatJvmHeapSize formats the string based on the size of the input value Return whole number (1200M not 1.2G) Return a minimum magnitude of K
func PodMemToJvmHeap ¶
PodMemToJvmHeap converts a pod resource memory (.5Gi) to the JVM heap setting in the format java expects (e.g. 512m)
func PodMemToJvmHeapArgs ¶
PodMemToJvmHeapArgs converts a pod resource memory to the JVM heap setting with same min/max, e.g: "-Xms512m -Xmx512m"
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.