Skip to content

Commit 76a0d5b

Browse files
authored
cgroup max memory discovery analysis (#2746)
1 parent e6e7749 commit 76a0d5b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

apm-agent-core/src/main/java/co/elastic/apm/agent/metrics/builtin/CGroupMetrics.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,7 @@ private CgroupFiles createCgroup1Files(File memoryMountPath) throws IOException
203203
private File getMaxMemoryFile(File maxMemoryFile, String cgroupUnlimitedConstant) throws IOException {
204204
try(BufferedReader maxFileReader = new BufferedReader(new FileReader(maxMemoryFile))) {
205205
String memMaxLine = maxFileReader.readLine();
206+
logger.debug("max cgroup memory read from {} is: {}", maxMemoryFile.getAbsolutePath(), memMaxLine);
206207
if (cgroupUnlimitedConstant.equalsIgnoreCase(memMaxLine)) {
207208
// Make sure we don't send the max metric when cgroup is not bound to a memory limit
208209
maxMemoryFile = null;

0 commit comments

Comments
 (0)