Open File Descriptor and User Process Limits
On Linux, also ensure that open file descriptor and user process limits on the EUM Server machine are set to a sufficient value. For the EUM Server, the hard and soft limits should be as follows:
- Open file descriptor limit (
nofile): 65535 - Process limit (
nproc): 8192
See "Configure User Limits in Linux" below for information on how to check and set user limits.
Configure User Limits in Linux
The following log warnings may indicate insufficient limits:
- Warning in database log: "Could not increase number of max_open_files to more than xxxx".
- Warning in server log: "Cannot allocate more connections".
To check your existing settings, as the root user, enter the following commands:
ulimit -S -n
ulimit -S -u
The output indicates the soft limits for the open file descriptor and soft limits for processes, respectively. If the values are lower than recommended, you need to modify them.
Where you configure the settings depends upon your Linux distribution:
- If your system has a
/etc/security/limits.d directory, add the settings as the content of a new, appropriately named file under the directory. - If it does not have a
/etc/security/limits.ddirectory, add the settings to/etc/security/limits.conf. - If your system does not have a
/etc/security/limits.conffile, it is possible to put theulimitcommand in/etc/profile. However, check the documentation for your Linux distribution for the recommendations specific for your system.
To configure the limits:
- Determine whether you have a
/etc/security/limits.ddirectory on your system, and take one of the following steps depending on the result:- If youdo not have a
/etc/security/limits.ddirectory:As the root user, open the
limits.conffile for editing:/etc/security/limits.confSet the open file descriptor limit by adding the following lines, replacing
<login_user>with the operating system username under which the EUM Server runs:<login_user> hard nofile 65535 <login_user> soft nofile 65535 <login_user> hard nproc 8192 <login_user> soft nproc 8192
- If youdohave a
/etc/security/limits.ddirectory:As the root user, create a new file in the
limits.ddirectory. Give the file a descriptive name, such as the following:/etc/security/limits.d/appdynamics.confIn the file, add the configuration setting for the limits, replacing
<login_user>with the operating system username under which the EUM Server runs:<login_user> hard nofile 65535 <login_user> soft nofile 65535 <login_user> hard nproc 8192 <login_user> soft nproc 8192
- If youdo not have a
- Enable the file descriptor and process limits as follows:
Open the following file for editing:
/etc/pam.d/common-sessionAdd the line:
session required pam_limits.so
- Save your changes to the file.
When you log in again as the user identified by login_user, the limits will take effect.