Increase MAximum Number of Open Files

The following procedure increases the maximum number of files that can be opened for reading and writing. As the number of servers in the topology grows, so does the need for additional files to handle merging data to the NOAM. This procedure checks the number of files currently in use, and, if necessary, increases the maximum number of open files.

Note:

The following procedures are for one NOAM server. Repeat these procedures for other NOAM servers.

Active NOAM CLI: Determine the Number of Files Currently Open

  1. Use an SSH client to connect to the active NOAM.

    ssh <NOAM XMI IP address>

    login as: admusr

    password: <enter password>

    Note:

    The static XMI IP address for each server should be available in Table 3-1.
  2. Enter the following command to retrieve the pid of idbsvc. The pid is highlighted in this sample output:

    $ ps -ef | grep -i idbsvc

    root 4369 idbsvc Up 03/01 13:03:28 1 idbsvc -M10 -ME204 -D40 -DE820 -W1 -S2

  3. The number of open files is output with the ‘lsof’ command. Use the highlighted value from sub-step 2 in place of XXXX in the lsof command.

    $ sudo lsof -p XXXX | wc -l

    1278

  4. Record the number of files currently open (the output of step 3).
  5. Enter the following command to retrieve the pid of tpdProvd. The pid is highlighted in this sample output:

    $ ps -ef | grep -i tpdProvd

    tpdProvd 347635 1 0 06:09 ? 00:00:11 /usr/TKLC/plat/bin/tpdProvd

  6. The number of open files is output with the ‘lsof’ command. Use the highlighted value from sub-step 4 in place of XXXX in the lsof command.

    $ sudo lsof -p XXXX | wc –l

    1280

  7. Record the number of files currently open (the output of step 5).

Active NOAM CLI: Maximum Number of Open Files

Display the maximum number of open files for idbsvc.
  1. Use the highlighted value from step 1, sub-step 2 in place of XXXX in the cat command.

    $ sudo cat /proc/XXXX/limits | grep -i open

    Max open files 32768 32768 files

    The output of the cat command displays the maximum number of files that can be open by the idbsvc process. Record both values here: Soft Limit (1st value) and Hard Limit (2nd value). This system has over 1024 open files, but its current ulimit for idbsvc is high enough during normal operation that the amount of open files does not pose a problem. However, when an attempt to upgrade another process (tpdProvd) updates idbsvc max # of open files to 1024, it causes the upgrade to fail. Display the maximum number of open files for tpdProvd.

  2. Use the highlighted value from step 1, sub-step 4 for tpdProvd in place of XXXX in the cat command.

    $ sudo cat /proc/XXXX/limits | grep -i open

    Max open files 1024 4096 files

    The output of the cat command displays the maximum number of files that can be open by the tpdProvd process. Record both values here: Soft Limit (1st value) and Hard Limit (2nd value).

    Caution:

    If the number of currently open files of idbsvc is less than the maximum allowed, this procedure is complete, that is, number of currently open files (used by idbsvc) is less than 1024.

    If the maximum number of open files value for tpdProvd is already set to 32768, this procedure is complete.

    Further steps are not required to be executed on this NOAM server. If maximum value is not already set, then See Active NOAM CLI: Increase max number of open files in this section.

Active NOAM CLI: Increase Maximum Number of Open Files

  1. Using a text editor with sudo, edit the file /etc/init/tpdProvd.conf to add these two lines just before the comment line in the file /etc/init/tpdProvd.conf that reads Start the daemon:

    # increase open file limit

    limit nofile 32768 32768

  2. Save the file and close the editor.

    Note:

    Do not edit any other line in this file. You can back up the file, if required.

Active NOAM CLI: Restart tpdProvd Service

  1. Enter this command to stop tpdProvd:

    $ sudo initctl stop tpdProvd

  2. Enter this command to restart tpdProvd:

    $ sudo initctl start tpdProvd

    Sample output:

    tpdProvd start/running, proceed 186743

Active NOAM CLI: Recheck Open File Maximum Limit

  1. Enter the following command to retrieve the pid of idbsvc. The pid is highlighted in this sample output:

    $ ps –ef | grep -i idbsvc

    root 8670 idbsvc Up 03/01 13:03:28 1 idbsvc -M10 -ME204 -D40 -DE820 -W1 -S2

  2. Use the highlighted value from sub-step 1in place of XXXX in the cat command.

    $ sudo cat /proc/XXXX/limits | grep -i open

    Max open files 32768 32768 files

  3. Verify the output of step 2 indicates that the maximum number of open files is 32768. If the value is not 32768, it is recommended to contact My Oracle Support (MOS).