How to install atop

Enable epel repository if needed

## RHEL/CentOS 7 64-Bit ##
wget http://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
rpm -ivh epel-release-latest-7.noarch.rpm
yum install atop -y

Useful URLs:

https://www.tecmint.com/how-to-enable-epel-repository-for-rhel-centos-6-5/

https://www.tecmint.com/how-to-install-atop-to-monitor-logging-activity-of-linux-system-processes/Read the rest

How to get rid of /tmp/atop.d/atop.acct

You should never terminate atop by 'kill -9', because then it has no chance to stop process accounting; as a result the accounting file may consume a lot of disk space after a while!!!

Lets do this smoothly:

systemctl stop atopd
systemctl disable atopd

Check atop processes
ps auxfS |grep atop

Kill if any using 'kill -15'
kill -15 PID

Check for links and unlink if any:
ls /etc/systemd/system/ |grep atop

Remove atopd.service
Read the rest