
limitSamples.add(
</BUG>
new MetricFamilySamples.Sample(
<BUG>MEMORY_LIMIT_METRIC,
MEMORY_LABEL_NAMES,
MEMORY_HEAP_LABEL,
heapUsage.getMax() == -1 ? heapUsage.getMax() : heapUsage.getCommitted()));
limitSamples.add(
</BUG>
new MetricFamilySamples.Sample(

MemoryUsage heapUsage = memoryBean.getHeapMemoryUsage();
MemoryUsage nonHeapUsage = memoryBean.getNonHeapMemoryUsage();
ArrayList<MetricFamilySamples.Sample> usedSamples = new ArrayList<MetricFamilySamples.Sample>();
usedSamples.add(
