3 Stopping PCP

Stop the pmcd and pmlogger services to temporarily or permanently halt data collection.

Before halting or disabling the Performance Metrics Collector Daemon (pmcd) and Performance Metrics Logger (pmlogger) collector host services, verify that they're running:

sudo systemctl status pmcd pmlogger
  1. To temporarily halt data collection, stop the pmcd and pmlogger services:
    sudo systemctl stop pmcd pmlogger
  2. To halt data collection for an indefinite period and ensure that they don't start again automatically when the system boots, fully disable them:
    sudo systemctl disable --now pmcd pmlogger

The pmcd and pmlogger services have halted data collection either temporarily or permanently depending on the commands used.

Note:

For more information about masking and unmasking services to prevent scripts from restarting disabled system services, see Oracle Linux 9: Managing the System With systemd.