Setting System Limits for Linux - trillium_discovery - trillium_quality - 17.1

Trillium DQ Installation Guide

Product type
Software
Portfolio
Verify
Product family
Trillium
Product
Trillium > Trillium Discovery
Trillium > Trillium Quality
Version
17.1
Language
English
Product name
Trillium Quality and Discovery
Title
Trillium DQ Installation Guide
First publish date
2008
Last updated
2024-10-19
Published on
2024-10-19T09:58:08.471711

After installation we recommend that you manually set the following system limits to the Linux server. Otherwise the application may exceed max open file limits and you will see an error “Too many open files”.

  • System-wide limit

  • Per-user descriptors limit

  • Xinetd service limit

To set system-wide limit

  1. Use the following command to verify that the system-wide limit for ‘Max open files’ (descriptors) is set to unlimited (or greater than or equal to 10,000,000):

    cat /proc/sys/fs/file-max
    Verifying System-wide Limit
  2. If the limit is not set to unlimited (or greater than or equal to 10,000,000), use the following steps to increase the total number of files that can remain open system-wide:

    1. Open the file /etc/sysctl.conf.

    2. Add fs.file-max=10000000.

    3. Run sysctl -p.

To set per-user descriptors limit

  1. Run the following command to verify that the per-user descriptors limit is at least 1,000,000:

    limit or ulimit -a (if limit is not available)

    Verifying Per-user Descriptor Limit
  2. If the limit is not set to at least 1,000,000, increase the soft and hard values for this limit.

    1. Open the file /etc/security/limits.conf.

    2. Add desired values for all or a specific user.

      user      hard      nofile    1000000
      user      soft      nofile    1000000
Setting Per-user Descriptor Limit

To set xinetd service limit

  1. Use the following steps to verify that ‘Max open files’ limit for the xinetd service is set to 1,000,000:

    1. Run ps -ef | grep xinetd to get the PIDs.

    2. Run cat /proc/PID/limits.

      Verifying Xinetd Service Limit

      If the limit is not set to 1,000,000, use the following steps to increase it:

    3. Stop xinetd service by running systemctl stop xinetd.

    4. Open /usr/lib/systemd/system/xinetd.service.

    5. Add LimitNOFILE=1000000 at the end of the [Service] paragraph.

    6. Start the service by running systemctl start xinetd.Setting Xinetd Service Limit