NetWorker:ビジーなLinux NetWorkerサーバーでメッセージ「nsrd RPC critical Unable to accept client connection: 開いているファイルが多すぎます」

Summary: ビジー状態のLinux NetWorkerサーバーで、「nsrd RPC critical Unable to accept client connection: 開いているファイルが多すぎます」

This article applies to This article does not apply to This article is not tied to any specific product. Not all product versions are identified in this article.

Symptoms

NetWorkerサーバーが次を含む応答しなくなります。

  • NMCコンソールがプログレス バーでハングする
  • nsradmin コマンドが返されない
  • nsrwatch 戻りません
  • クライアントが接続を失う

NetWorker for Linuxサーバー上のデーモンは、オープン ファイルの制限が低すぎる状態で開始されます。これは、デーモンが起動時にプロセスごとの制限を継承しないことが原因です。使用される制限は 1024 にフォールバックします。これは、大規模なデータ ゾーンでは不十分な場合があります。

Cause

NetWorkerサーバーで開いているファイルの制限が低すぎます。

  1. nsrdのPIDを取得します
$ ps aux | grep nsrd | grep -v grep | grep -v disp | awk '{ print $2; }'
4021
  1. PIDはパスの一部です /proc/<nsrd_PID>/limits で確認するには、 cat コマンドを使用して実行できます。
    
$ cat /proc/4021/limits
Limit                     Soft Limit           Hard Limit           Units
Max cpu time              unlimited            unlimited            seconds
Max file size             unlimited            unlimited            bytes
Max data size             unlimited            unlimited            bytes
Max stack size            10485760             unlimited            bytes
Max core file size        unlimited            unlimited            bytes
Max resident set          unlimited            unlimited            bytes
Max processes             63833                63833                processes
Max open files            1024                 1024                 files
Max locked memory         32768                32768                bytes
Max address space         unlimited            unlimited            bytes
Max file locks            unlimited            unlimited            locks
Max pending signals       63833                63833                signals
Max msgqueue size         819200               819200               bytes
Max nice priority         0                    0
Max realtime priority     0                    0
$

Resolution

メモ: この記事の手順については、『 NetWorkerパフォーマンスの最適化と計画ガイド』を参照してください。https://www.dell.com/support/product-details/product/networker/docs を参照してください。

 

負荷の高いNetWorkerサーバー用に、NetWorkerサービスを開始する前に次の環境変数を有効にして、別の起動スクリプトを作成します。

 

完全なOSレベルで設定するには、次の手順を実行します。

 

オープン ファイル記述子: オープン ファイル記述子パラメーターを次の最小値に変更します。

  • 8192(小規模なNetWorker環境)
  • 16384(中規模のNetWorker環境)
  • 32768(大規模なNetWorker環境)

小規模、中規模、大規模のNetWorkerサーバの定義については、『NetWorkerパフォーマンスの最適化と計画ガイド』を参照してください。

最大オープン ファイル数

Linux NetWorkerサーバーで、 ulimit -n 8192.bash_profile ファイルを開き、現在のセッションを再開します。

プロセスあたりの最小および最大ファイル記述子数を設定するには、次のようにします。Red Hat 7、SLES 12、SLES 15

prlimit --pid <pid_of_the_process> --nofile=<min_limit>:<max_limit>
Example:
prlimit --pid 12345 --nofile=1024:4096

プロセスあたりの最小および最大ファイル記述子数を設定するには、次のようにします。Red Hat 6

echo -n "Max open files=min_limit:max_limit" > /proc/pid_of_the_process/limits
Example:
echo -n "Max open files=4096:16384" > /proc/1208/limits

TCPパラメータ

NetWorkerサーバーが高負荷で実行される場合(サーバーのアプリケーション ポートで多数のソケット リクエストが同時に実行される場合)は、次のTCPパラメーターを追加します。

  • Linux NetWorkerサーバーでは、次のTCPパラメーターを /etc/sysctl.conf ファイルを開き、 sysctl --system コマンドを使用して実行できます。
    net.ipv4.tcp_fin_timeout = 30
    net.ipv4.ip_local_port_range = 15000 65535
    net.core.somaxconn = 1024
    
    
  • Linux NMCサーバーで、file-max値を65536に更新して、NetWorkerサーバーが高負荷で実行されている場合にPostgresデータベースの接続を確保します。
    echo 65536 > /proc/sys/fs/file-max
    

Additional Information

Article Properties
Article Number: 000026874
Article Type: Solution
Last Modified: 16 Apr 2025
Version:  5
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.