How Does the Linux Agent Work with cPanel?
  • 1 Minute to read
  • Dark
    Light
  • PDF

How Does the Linux Agent Work with cPanel?

  • Dark
    Light
  • PDF

Article Summary

cPanel by default sets the number of file descriptors to 100. In order for the Retrace agent to work correctly, the number of file descriptors needs to be set to 256. This article will show you how to set these limits so that the agent will work properly.

Errors in the Log File

To confirm that the issue the agent is not working on your server is related to the file descriptor limit, check the agent log file for the error "Too many open files".

Fixing the Issue

Once you have verified that the above error is occurring on your server, the next step is to locate the files that are setting the default limits to 100 and increase the limits to 256. In most cases, the files that need to be edited are:

  • /etc/profile
  • /etc/bashrc
  • /etc/profile.d/limits.sh

cPanel and server configuration may vary. If making changes to these files does not fix the issue, you can find more information in the cPanel forums or by checking out this thread: https://forums.cpanel.net/threads/the-purpose-of-etc-profile-d-limit-sh.389332/


Was this article helpful?