RPC Server startet nicht mehr wegen "Too many open Files"

Begonnen von techblaster, 23 November 2020, 09:07:03

Vorheriges Thema - Nächstes Thema

techblaster

Hallo zusammen,

meine FHEM Installation war schon seit einiger Zeit träge, inzwischen läuft es zunehmend schlechter. Ich habe vor kurzem die Zahl der zu öffnenden Files gemäß einer Anleitung hier im Forum schon hoch gesetzt. Dies hat es es aber gefühlt eher noch verschlimmert. Aktuell lässt sich mein RPC-Dienst nicht mehr starten. Im Log steht dazu:
2020.11.23 08:58:07 0: CCURPC: Initializing RPC server CB2010
2020.11.23 08:58:08 2: SubProcess: onRun returned error: Can't locate URI/_query.pm:   /usr/share/perl5/URI/_query.pm: Too many open files at /usr/share/perl/5.24/parent.pm line 16.
BEGIN failed--compilation aborted at /usr/share/perl5/URI/_generic.pm line 6.
Compilation failed in require at /usr/share/perl/5.24/parent.pm line 16.
BEGIN failed--compilation aborted at /usr/share/perl5/URI/_server.pm line 6.
Compilation failed in require at /usr/share/perl/5.24/parent.pm line 16.
BEGIN failed--compilation aborted at /usr/share/perl5/URI/http.pm line 9.
Compilation failed in require at (eval 263) line 2.

2020.11.23 08:58:08 2: CCURPC: Eventcount DD = 0
2020.11.23 08:58:08 2: CCURPC: Eventcount EV = 0
2020.11.23 08:58:08 2: CCURPC: Eventcount EX = 0
2020.11.23 08:58:08 2: CCURPC: Eventcount IN = 0
2020.11.23 08:58:08 2: CCURPC: Eventcount ND = 0
2020.11.23 08:58:08 2: CCURPC: Eventcount RA = 0
2020.11.23 08:58:08 2: CCURPC: Eventcount RD = 0
2020.11.23 08:58:08 2: CCURPC: Eventcount SL = 0
2020.11.23 08:58:08 2: CCURPC: Eventcount UD = 0
2020.11.23 08:58:08 2: CCURPC: Eventcount total = 0
2020.11.23 08:58:08 2: CCURPC: Eventcount writeerror = 0
2020.11.23 08:58:08 5: SubProcess 660 ended.
2020.11.23 08:58:08 1: PERL WARNING: Can't load '/usr/lib/x86_64-linux-gnu/perl/5.24/auto/Sys/Hostname/Hostname.so' for module Sys::Hostname: /usr/lib/x86_64-linux-gnu/perl/5.24/auto/Sys/Hostname/Hostname.so: cannot open shared object file: Too many open files at /usr/share/perl/5.24/XSLoader.pm line 96.
^@ at /usr/lib/x86_64-linux-gnu/perl/5.24/Sys/Hostname.pm line 22.
2020.11.23 08:58:08 2: SubProcess: onRun returned error: Can't locate URI/_server.pm:   /usr/share/perl5/URI/_server.pm: Too many open files at /usr/share/perl/5.24/parent.pm line 16.
BEGIN failed--compilation aborted at /usr/share/perl5/URI/http.pm line 9.
Compilation failed in require at (eval 931) line 2.

2020.11.23 08:58:08 2: CCURPC: Eventcount DD = 0
2020.11.23 08:58:08 2: CCURPC: Eventcount EV = 0
2020.11.23 08:58:08 2: CCURPC: Eventcount EX = 0
2020.11.23 08:58:08 2: CCURPC: Eventcount IN = 0
2020.11.23 08:58:08 2: CCURPC: Eventcount ND = 0
2020.11.23 08:58:08 2: CCURPC: Eventcount RA = 0
2020.11.23 08:58:08 2: CCURPC: Eventcount RD = 0
2020.11.23 08:58:08 2: CCURPC: Eventcount SL = 0
2020.11.23 08:58:08 2: CCURPC: Eventcount UD = 0
2020.11.23 08:58:08 2: CCURPC: Eventcount total = 0
2020.11.23 08:58:08 2: CCURPC: Eventcount writeerror = 0
2020.11.23 08:58:08 5: SubProcess 661 ended.


Ich habe neben ca. 15 Homematic Geräte noch etwa 8 Sonoffs und eine Menge KNX (EIB) Geräte im FHEM. Mein Logordner ist voll von den ganzen Geräten und für jedes KNX Gerät welches via autocreate angelegt wurde werden Logs geschrieben. Wie kann ich die Anzahl der zu öffnenden Dateien reduzieren und das System wieder entlasten? Wie kann ich erkennen welche Dateien so geöffnet sind?

Danke und Grüße