Skip to content

Commit d6eaa9f

Browse files
committed
Debug 'Cannot allocate memory'
Several jobs fails with [OSError] Cannot allocate memory, but it is not clear why. Is it caused by multiple run away process, or just on process become fat. Adding line to cleanup_host to save the final process list including the memory usage. Change-Id: Ic7455d689869092703974512d14bd121e4b44f1b
1 parent d24d3cc commit d6eaa9f

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

functions.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -667,6 +667,9 @@ function cleanup_host {
667667
find $BASE/logs/rabbitmq -type f -exec mv '{}' '{}'.txt \;
668668
fi
669669

670+
# final memory usage and process list
671+
ps -eo user,pid,ppid,lwp,%cpu,%mem,size,rss,cmd > $BASE/logs/ps.txt
672+
670673
# Compress all text logs
671674
sudo find $BASE/logs -iname '*.txt' -execdir gzip -9 {} \+
672675
sudo find $BASE/logs -iname '*.dat' -execdir gzip -9 {} \+

0 commit comments

Comments
 (0)