APIdia Launch Partner
Top Description Fields Constructors Methods
jdk.internal.platform

public Class CgroupV1MetricsImpl

extends CgroupMetrics
implements CgroupV1Metrics
Class Inheritance
All Implemented Interfaces
jdk.internal.platform.CgroupV1Metrics, jdk.internal.platform.Metrics

Cgroup v1 Metrics extensions

Field Summary

Modifier and TypeField and Description
private final CgroupV1Metrics

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public double
getCpuSetMemoryPressure()

Implements jdk.internal.platform.CgroupV1Metrics.getCpuSetMemoryPressure.

Returns the (attempts per second * 1000), if enabled, that the operating system tries to satisfy a memory request for any process in the current Isolation Group when no free memory is readily available.

public long
getKernelMemoryFailCount()

Implements jdk.internal.platform.CgroupV1Metrics.getKernelMemoryFailCount.

Returns the number of times that kernel memory requests in the Isolation Group have exceeded the kernel memory limit.

public long
getKernelMemoryMaxUsage()

Implements jdk.internal.platform.CgroupV1Metrics.getKernelMemoryMaxUsage.

Returns the largest amount of kernel physical memory, in bytes, that have been allocated in the Isolation Group.

public long
getKernelMemoryUsage()

Implements jdk.internal.platform.CgroupV1Metrics.getKernelMemoryUsage.

Returns the amount of kernel physical memory, in bytes, that is currently allocated in the current Isolation Group.

public long
getMemoryAndSwapFailCount()

Implements jdk.internal.platform.CgroupV1Metrics.getMemoryAndSwapFailCount.

Returns the number of times that user memory requests in the Isolation Group have exceeded the memory + swap limit.

public long
getMemoryAndSwapMaxUsage()

Implements jdk.internal.platform.CgroupV1Metrics.getMemoryAndSwapMaxUsage.

Returns the largest amount of physical memory and swap space, in bytes, that have been allocated in the Isolation Group.

public long
getMemoryMaxUsage()

Implements jdk.internal.platform.CgroupV1Metrics.getMemoryMaxUsage.

Returns the largest amount of physical memory, in bytes, that have been allocated in the Isolation Group.

public long
getTcpMemoryFailCount()

Implements jdk.internal.platform.CgroupV1Metrics.getTcpMemoryFailCount.

Returns the number of times that networking memory requests in the Isolation Group have exceeded the kernel memory limit.

public long
getTcpMemoryMaxUsage()

Implements jdk.internal.platform.CgroupV1Metrics.getTcpMemoryMaxUsage.

Returns the largest amount of networking physical memory, in bytes, that have been allocated in the Isolation Group.

public Boolean
isCpuSetMemoryPressureEnabled()

Implements jdk.internal.platform.CgroupV1Metrics.isCpuSetMemoryPressureEnabled.

Returns the state of the memory pressure detection support.

public Boolean
isMemoryOOMKillEnabled()

Implements jdk.internal.platform.CgroupV1Metrics.isMemoryOOMKillEnabled.

Returns the state of the Operating System Out of Memory termination policy.

Inherited from jdk.internal.platform.CgroupMetrics:
getBlkIOServiceCountgetBlkIOServicedgetCpuNumPeriodsgetCpuNumThrottledgetCpuPeriodgetCpuQuotagetCpuSetCpusgetCpuSetMemsgetCpuSharesgetCpuSystemUsagegetCpuThrottledTimegetCpuUsagegetCpuUserUsagegetEffectiveCpuCountgetEffectiveCpuSetCpusgetEffectiveCpuSetMemsgetInstancegetMemoryAndSwapLimitgetMemoryAndSwapUsagegetMemoryFailCountgetMemoryLimitgetMemorySoftLimitgetMemoryUsagegetPerCpuUsagegetPidsCurrentgetPidsMaxgetProvidergetTcpMemoryUsageisContainerized

Field Detail

metricsback to summary
private final CgroupV1Metrics metrics

Constructor Detail

CgroupV1MetricsImplback to summary
pack-priv CgroupV1MetricsImpl(CgroupV1Metrics metrics)

Method Detail

getCpuSetMemoryPressureback to summary
public double getCpuSetMemoryPressure()

Implements jdk.internal.platform.CgroupV1Metrics.getCpuSetMemoryPressure.

Doc from jdk.internal.platform.CgroupV1Metrics.getCpuSetMemoryPressure.

Returns the (attempts per second * 1000), if enabled, that the operating system tries to satisfy a memory request for any process in the current Isolation Group when no free memory is readily available. Use isCpuSetMemoryPressureEnabled() to determine if this support is enabled.

Annotations
@Override
getKernelMemoryFailCountback to summary
public long getKernelMemoryFailCount()

Implements jdk.internal.platform.CgroupV1Metrics.getKernelMemoryFailCount.

Doc from jdk.internal.platform.CgroupV1Metrics.getKernelMemoryFailCount.

Returns the number of times that kernel memory requests in the Isolation Group have exceeded the kernel memory limit.

Annotations
@Override
getKernelMemoryMaxUsageback to summary
public long getKernelMemoryMaxUsage()

Implements jdk.internal.platform.CgroupV1Metrics.getKernelMemoryMaxUsage.

Doc from jdk.internal.platform.CgroupV1Metrics.getKernelMemoryMaxUsage.

Returns the largest amount of kernel physical memory, in bytes, that have been allocated in the Isolation Group.

Annotations
@Override
getKernelMemoryUsageback to summary
public long getKernelMemoryUsage()

Implements jdk.internal.platform.CgroupV1Metrics.getKernelMemoryUsage.

Doc from jdk.internal.platform.CgroupV1Metrics.getKernelMemoryUsage.

Returns the amount of kernel physical memory, in bytes, that is currently allocated in the current Isolation Group.

Annotations
@Override
getMemoryAndSwapFailCountback to summary
public long getMemoryAndSwapFailCount()

Implements jdk.internal.platform.CgroupV1Metrics.getMemoryAndSwapFailCount.

Doc from jdk.internal.platform.CgroupV1Metrics.getMemoryAndSwapFailCount.

Returns the number of times that user memory requests in the Isolation Group have exceeded the memory + swap limit.

Annotations
@Override
getMemoryAndSwapMaxUsageback to summary
public long getMemoryAndSwapMaxUsage()

Implements jdk.internal.platform.CgroupV1Metrics.getMemoryAndSwapMaxUsage.

Doc from jdk.internal.platform.CgroupV1Metrics.getMemoryAndSwapMaxUsage.

Returns the largest amount of physical memory and swap space, in bytes, that have been allocated in the Isolation Group.

Annotations
@Override
getMemoryMaxUsageback to summary
public long getMemoryMaxUsage()

Implements jdk.internal.platform.CgroupV1Metrics.getMemoryMaxUsage.

Doc from jdk.internal.platform.CgroupV1Metrics.getMemoryMaxUsage.

Returns the largest amount of physical memory, in bytes, that have been allocated in the Isolation Group.

Annotations
@Override
getTcpMemoryFailCountback to summary
public long getTcpMemoryFailCount()

Implements jdk.internal.platform.CgroupV1Metrics.getTcpMemoryFailCount.

Doc from jdk.internal.platform.CgroupV1Metrics.getTcpMemoryFailCount.

Returns the number of times that networking memory requests in the Isolation Group have exceeded the kernel memory limit.

Annotations
@Override
getTcpMemoryMaxUsageback to summary
public long getTcpMemoryMaxUsage()

Implements jdk.internal.platform.CgroupV1Metrics.getTcpMemoryMaxUsage.

Doc from jdk.internal.platform.CgroupV1Metrics.getTcpMemoryMaxUsage.

Returns the largest amount of networking physical memory, in bytes, that have been allocated in the Isolation Group.

Annotations
@Override
isCpuSetMemoryPressureEnabledback to summary
public Boolean isCpuSetMemoryPressureEnabled()

Implements jdk.internal.platform.CgroupV1Metrics.isCpuSetMemoryPressureEnabled.

Doc from jdk.internal.platform.CgroupV1Metrics.isCpuSetMemoryPressureEnabled.

Returns the state of the memory pressure detection support.

Annotations
@Override
isMemoryOOMKillEnabledback to summary
public Boolean isMemoryOOMKillEnabled()

Implements jdk.internal.platform.CgroupV1Metrics.isMemoryOOMKillEnabled.

Doc from jdk.internal.platform.CgroupV1Metrics.isMemoryOOMKillEnabled.

Returns the state of the Operating System Out of Memory termination policy.

Annotations
@Override