Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,7 @@ private CgroupFiles createCgroup1Files(File memoryMountPath) throws IOException
private File getMaxMemoryFile(File maxMemoryFile, String cgroupUnlimitedConstant) throws IOException {
try(BufferedReader maxFileReader = new BufferedReader(new FileReader(maxMemoryFile))) {
String memMaxLine = maxFileReader.readLine();
logger.debug("max cgroup memory read from {} is: {}", maxMemoryFile.getAbsolutePath(), memMaxLine);
if (cgroupUnlimitedConstant.equalsIgnoreCase(memMaxLine)) {
// Make sure we don't send the max metric when cgroup is not bound to a memory limit
maxMemoryFile = null;
Expand Down