Help Center/ Log Tank Service/ FAQs/ Host Management/ What Do I Do If ICAgent Restarts Repeatedly After Being Installed?
Updated on 2024-08-05 GMT+08:00

What Do I Do If ICAgent Restarts Repeatedly After Being Installed?

Background

ICAgent restarts repeatedly after being installed.

Impact on the System

ICAgent metrics/logs cannot be collected.

Possible Causes

  • The resource usage exceeds the limit of ICAgent.
  • ICAgent is abnormal.

Fault Locating

  1. Log in to the ECS where ICAgent is installed.
  2. Run the cd /var/ICAgent command to go to the ICAgent log directory.
  3. Query the current log file to check whether the resource usage is abnormal.

    cat oss.icAgent.trace| grep 'icagent exit'
    • If any command output is displayed, there is a resource abnormality. Troubleshoot it.
    • If no command output is displayed, the resource usage is normal.

  4. Query historical log files to check whether the resource usage is abnormal.

    zgrep 'icagent exit' *.zip
    • If any command output is displayed, there is a resource abnormality. Troubleshoot it.
    • If no command output is displayed, the resource usage is normal.

  5. Query the ICAgent startup log file to check whether ICAgent is abnormal.

    cat oss.script.trace | grep runtime
    • If any command output is displayed, there is a ICAgent abnormality. Troubleshoot it.
    • If no command output is displayed, ICAgent is running properly.

  6. Query the historical ICAgent startup log files to check whether ICAgent is abnormal.

    zgrep runtime oss.script.*.zip
    • If any command output is displayed, there is a ICAgent abnormality. Troubleshoot it.
    • If no command output is displayed, ICAgent is running properly.