NetWorker:忙碌的 Linux NetWorker 伺服器報告訊息「nsrd RPC critical 無法接受用戶端連線:開啟的檔案太多」
Summary: 忙碌的 Linux NetWorker 伺服器回報訊息「nsrd RPC critical 無法接受用戶端連線:開啟的檔案太多」
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不傳回 - 用戶端失去連線
適用於 Linux 的 NetWorker 伺服器上的精靈開始時開啟的檔案限制太低。這是因為守護程式在啟動時不會繼承每個進程的限制。使用的限制回落到 1024。對於較大的數據區域,這可能是不夠的。
Cause
NetWorker 伺服器上開啟的檔案限制太低。
- 取得 nsrd 的 PID
$ ps aux | grep nsrd | grep -v grep | grep -v disp | awk '{ print $2; }'
4021
-
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 伺服器建立個別啟動指令檔:
若要在完整的作業系統等級設定:
開啟檔案描述項:將開啟的檔案描述元參數變更為最小值:
- 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>範例:prlimit --pid 12345 --nofile=1024:4096
若要設定每個行程的最小和最大檔案描述符,請執行以下操作:Red Hat 6
echo -n "Max open files=min_limit:max_limit" > /proc/pid_of_the_process/limits範例: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.