Introduce new log file in /var/log/rss-memory.log
This change adds a new log /var/log/rss-memory.log for memory growth debuging The following entry into crontab will output daily at 01:00: 0 1 * * * /usr/bin/date >> /var/log/rss-memory.log; /usr/bin/ps -e -o ppid,pid,nlwp,rss:10,vsz:10, comm,cmd --sort=-rss >> /var/log/rss-memory.log Test Plan: - PASS: Build an image, install and bootstrap successfully - PASS: Apply monitor pods so addon logs would be installed. - PASS: Check that log entries are correctly displayed. - PASS: Tested on controller, AIO, worker and storage hosts. Closes-Bug: 2019007 Change-Id: I6f8e6208d203bcc77320ced3766af04dab977829 Signed-off-by: Cesar Bombonate <Cesar.PompeudeBarrosBombonate@windriver.com>
This commit is contained in:
parent
94ee511348
commit
62e2c8b8e5
|
@ -83,8 +83,17 @@ class platform::collectd
|
|||
group => 'root',
|
||||
mode => '0600',
|
||||
}
|
||||
}
|
||||
|
||||
# Crontab entry for rss daily Memory log.
|
||||
cron { 'memory-logs':
|
||||
ensure => 'present',
|
||||
command => '/usr/bin/date >> /var/log/rss-memory.log; /usr/bin/ps -e -o ppid,pid,nlwp,rss:10,vsz:10,comm,cmd --sort=-rss >> /var/log/rss-memory.log', # lint:ignore:140chars
|
||||
environment => 'PATH=/bin:/usr/bin:/usr/sbin',
|
||||
minute => '00',
|
||||
hour => '1',
|
||||
user => 'root',
|
||||
}
|
||||
}
|
||||
class platform::collectd::runtime {
|
||||
include ::platform::collectd
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue