From 674ea295a8aacf04e385e227b1ad26e30e2a1d1f Mon Sep 17 00:00:00 2001 From: Carsten Grohmann Date: Thu, 19 Nov 2020 14:55:38 +0100 Subject: [PATCH] Line "Killed process" can contain the process UID Newer Red Hat 7 releases changes the output of the OOM a little bit. The last output line "Killed process" contains the process UID now. Old: Killed process 6576 (java) total-vm:33914892kB, \ anon-rss:20629004kB, file-rss:0kB, shmem-rss:0kB New: Killed process 6576 (java), UID 12345, total-vm:33914892kB, \ anon-rss:20629004kB, file-rss:0kB, shmem-rss:0kB --- OOMAnalyser.html | 1 + OOMAnalyser.py | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/OOMAnalyser.html b/OOMAnalyser.html index b0f80f9..2d8cedb 100644 --- a/OOMAnalyser.html +++ b/OOMAnalyser.html @@ -791,6 +791,7 @@ function goBack() {
  • Add sorting process table
  • Fix: Trigger process isn't part of process table
  • Update to Transcrypt 3.7
  • +
  • Line "Killed process" can contain the process UID
  • ...
  • diff --git a/OOMAnalyser.py b/OOMAnalyser.py index 4e2b39d..67fb62e 100644 --- a/OOMAnalyser.py +++ b/OOMAnalyser.py @@ -420,7 +420,9 @@ class OOMAnalyser(object): ) REC_KILLED_PROCESS = re.compile( - r'^Killed process \d+ \(.*\) total-vm:(?P\d+)kB, anon-rss:(?P\d+)kB, ' + r'^Killed process \d+ \(.*\)' + r'(, UID \d+,)?' + r' total-vm:(?P\d+)kB, anon-rss:(?P\d+)kB, ' r'file-rss:(?P\d+)kB, shmem-rss:(?P\d+)kB.*', re.MULTILINE)