Knowledgebase

A lot of newrelic-daemon processes running

If you have multiple newrelic-daemon processes running on your server, it's possible that there are multiple instances of the New Relic monitoring agent running. This can occur if the agent is being started multiple times, either manually or through an automated process.

Here are steps you can take to address this issue:

  1. Check Configuration Files:

    • Look at the configuration files associated with the New Relic agent. These files are typically located in /etc/newrelic or a similar directory. Ensure that there are no duplicate configurations or scripts starting the agent.
  2. Check Startup Scripts:

    • Examine any startup scripts or systemd units associated with New Relic. Ensure that there isn't more than one script or unit starting the newrelic-daemon.
  3. Stop and Restart:

    • You can stop the newrelic-daemon processes using the following command:

      bash

 

  • sudo service newrelic-daemon stop
  • After stopping the daemon, restart it with:

    bash
    • sudo service newrelic-daemon start
  • Check for Multiple Installations:

    • Verify that you don't have multiple installations of the New Relic agent on your server. If you do, consider removing the extra installations.
  • Monitor Process Activity:

    • Use tools like top, htop, or ps to monitor the process activity. This can help you identify where the extra processes are originating from.
    bash

 

top

or

bash
  1. htop
  2. Check for Cron Jobs:

    • Look for any cron jobs that might be starting the newrelic-daemon. Sometimes, scripts in cron jobs can inadvertently start the agent multiple times.
  3. Review Logs:

    • Check the New Relic agent logs for any error messages or indications of why multiple instances might be running. The log files are typically located in /var/log/newrelic.
  4. Contact New Relic Support:

    • If you're unable to resolve the issue, consider reaching out to New Relic's support team for further assistance. They may have specific recommendations or solutions based on your environment.

Remember to always make backups and exercise caution when making changes to critical system processes or configurations. If you're unsure about any of the steps, consider consulting with your system administrator or a qualified professional for guidance.

 
  • 0 Users Found This Useful
Was this answer helpful?