Was verursacht 100% CPU Last?

Begonnen von choetzu, 12 November 2023, 22:36:28

Vorheriges Thema - Nächstes Thema

choetzu

Guten Abend,

ich habe seit längerem FHEM auf Raspi4 laufen. Eigentlich sehr stabil. Darauf habe ich EnOcean (dongle), Zwave (Dongle), Homatic (2 Lan-Gateway HMUARTLGW), HueBridge, Homekit, Mqtt Server und -Bridge, Arlo uvm am Laufen..

Mqtt benutze ich um Readings von einem zweiten Raspi4 mit Fhem auszutauschen. Seit kurzem meldet er alle 1-2 Tage Aussetzter von bis zu einer Stunde. Dann wird die Verbindung zum Mqtt Server (auf dem ersten Raspi) unterbrochen.

Wenn ich dann die CPU Last mit htop anschaue, steht das 100% fhem.pl....

Nun weiss ich nicht, ob Mqtt plötzlich für diese Aussetzer verantwortlich sind. Wie kann man prüfen, was für eine hohe CPU Last innerhalb von fhem verantwortlich ist.

Danke für die Hilfe und schönen Abend.
Lg C
Raspi3, EnOcean, Zwave, Homematic

KölnSolar

z.B. das freezemon-Modul liefert Hinweise ....
RPi3/2 buster/stretch-SamsungAV_E/N-RFXTRX-IT-RSL-NC5462-Oregon-CUL433-GT-TMBBQ-01e-CUL868-FS20-EMGZ-1W(GPIO)-DS18B20-CO2-USBRS232-USBRS422-Betty_Boop-EchoDot-OBIS(Easymeter-Q3/EMH-KW8)-PCA301(S'duino)-Deebot(mqtt2)-zigbee2mqtt

choetzu

super, danke. Hab ich grad in Betrieb genommen (freezemon). Mal schauen, was der rausspuckt...
Raspi3, EnOcean, Zwave, Homematic

choetzu

#3
Guten Abend,

Ich dachte es liegt am mqtt. Weil die Verbindung zum mqtt Server immer unterbrochen wurde (mit 2 anderen Raspis verbunden) und gleichzeitig meine Homematic LGW-Gateways (2 Stk) immer auf disconnect gingen.

Also hab ich von Mqtt auf Mqtt2 gewechselt. Nun  schmiert mir einmal pro Tag mein Raspi4 völlig ab. Vorher geht das ganze auf 100% CPU Last und dann ist er überhaupt nicht mehr erreichbar. Nicht mal per SSH gehts mehr. Somit muss ich Stecker raus und Stecker wieder reinmachen. Nich wirklich Sexy. Wenn ich einen Blick ins Logfile mache (kann das nur via terminal mit cat), dann kommt gefühlt 1000mal "Accept failed (telnetPort: Too many open files)". Das ist komisch, weil mein Raspi seit 2 Jahren problemlos läuft.

Irgendwo habe ich gelesen, dass man nach Reboot mal
sudo ls -l /proc/$(ps -ax | grep [f]hem | head -n1 | awk '{print $1}')/fd
eingeben soll. Das spickt bei mir folgendes raus:

lr-x------ 1 fhem dialout 64 21. Nov 16:01 0 -> /dev/null
l-wx------ 1 fhem dialout 64 21. Nov 16:01 1 -> /opt/fhem/log/fhem-2023-11.log
lrwx------ 1 fhem dialout 64 21. Nov 16:01 10 -> /dev/ttyACM0
lrwx------ 1 fhem dialout 64 21. Nov 16:01 11 -> /dev/ttyUSB0
lrwx------ 1 fhem dialout 64 21. Nov 16:01 12 -> 'socket:[14103]'
l-wx------ 1 fhem dialout 64 21. Nov 16:01 13 -> /opt/fhem/log/Kueche_D_FUD61-2023.log
lrwx------ 1 fhem dialout 64 21. Nov 16:01 14 -> 'socket:[16317]'
lrwx------ 1 fhem dialout 64 21. Nov 16:01 15 -> 'socket:[16319]'
lrwx------ 1 fhem dialout 64 21. Nov 16:01 16 -> 'socket:[16384]'
lr-x------ 1 fhem dialout 64 21. Nov 16:01 17 -> /tmp/arlo
lrwx------ 1 fhem dialout 64 21. Nov 16:01 18 -> 'socket:[17631]'
l-wx------ 1 fhem dialout 64 21. Nov 16:01 2 -> /opt/fhem/log/fhem-2023-11.log
lrwx------ 1 fhem dialout 64 21. Nov 16:01 21 -> 'socket:[18492]'
lrwx------ 1 fhem dialout 64 21. Nov 16:01 22 -> 'socket:[18437]'
lrwx------ 1 fhem dialout 64 21. Nov 16:01 23 -> 'socket:[18436]'
lrwx------ 1 fhem dialout 64 21. Nov 16:01 26 -> 'socket:[18434]'
lrwx------ 1 fhem dialout 64 21. Nov 16:01 28 -> 'socket:[18439]'
lrwx------ 1 fhem dialout 64 21. Nov 16:01 29 -> 'socket:[18443]'
l-wx------ 1 fhem dialout 64 21. Nov 16:01 3 -> /opt/fhem/log/fhem-2023-11.log
lrwx------ 1 fhem dialout 64 21. Nov 16:01 30 -> 'socket:[16383]'
lrwx------ 1 fhem dialout 64 21. Nov 16:01 31 -> 'socket:[18440]'
lrwx------ 1 fhem dialout 64 21. Nov 16:01 32 -> 'socket:[18493]'
lrwx------ 1 fhem dialout 64 21. Nov 16:01 33 -> 'socket:[18444]'
lrwx------ 1 fhem dialout 64 21. Nov 16:01 35 -> 'socket:[16972]'
lrwx------ 1 fhem dialout 64 21. Nov 16:01 36 -> 'socket:[16973]'
lrwx------ 1 fhem dialout 64 21. Nov 16:01 4 -> 'socket:[16318]'
lrwx------ 1 fhem dialout 64 21. Nov 16:01 5 -> 'socket:[16730]'
lrwx------ 1 fhem dialout 64 21. Nov 16:01 6 -> 'socket:[16731]'
lrwx------ 1 fhem dialout 64 21. Nov 16:01 7 -> 'socket:[13978]'
l-wx------ 1 fhem dialout 64 21. Nov 16:01 8 -> /opt/fhem/log/fhem-2023-11.log
lrwx------ 1 fhem dialout 64 21. Nov 16:01 9 -> 'socket:[16229]'

und wenn ich

sudo lsof -p 614
mache, kommt
COMMAND PID USER   FD   TYPE             DEVICE  SIZE/OFF   NODE NAME
perl    614 fhem  cwd    DIR              179,7      4096 535430 /opt/fhem
perl    614 fhem  rtd    DIR              179,7      4096      2 /
perl    614 fhem  txt    REG              179,7   3201036  18175 /usr/bin/perl
perl    614 fhem  mem    REG              179,7    155310  15437 /usr/share/locale/de/LC_MESSAGES/libc.mo
perl    614 fhem  mem    REG              179,7    517384 144448 /usr/lib/arm-linux-gnueabihf/perl5/5.32/auto/Net/SSLeay/SSLeay.so
perl    614 fhem  mem    REG              179,7     75608 156681 /usr/lib/arm-linux-gnueabihf/perl/5.32.1/auto/B/B.so
perl    614 fhem  mem    REG              179,7     17972   2488 /lib/arm-linux-gnueabihf/libnss_dns-2.31.so
perl    614 fhem  mem    REG              179,7     75568   2493 /lib/arm-linux-gnueabihf/libresolv-2.31.so
perl    614 fhem  mem    REG              179,7     13760  14298 /lib/arm-linux-gnueabihf/libnss_mdns4_minimal.so.2
perl    614 fhem  mem    REG              179,7     42628   2489 /lib/arm-linux-gnueabihf/libnss_files-2.31.so
perl    614 fhem  mem    REG              179,7     17988  46758 /usr/lib/arm-linux-gnueabihf/perl-base/auto/Hash/Util/Util.so
perl    614 fhem  mem    REG              179,7     13944 156697 /usr/lib/arm-linux-gnueabihf/perl/5.32.1/auto/Devel/Peek/Peek.so
perl    614 fhem  mem    REG              179,7     17984 156720 /usr/lib/arm-linux-gnueabihf/perl/5.32.1/auto/Encode/Unicode/Unicode.so
perl    614 fhem  mem    REG              179,7     58628 156963 /usr/lib/arm-linux-gnueabihf/perl5/5.32/auto/JSON/XS/XS.so
perl    614 fhem  mem    REG              179,7      9448 157271 /usr/lib/arm-linux-gnueabihf/perl5/5.32/auto/Device/SerialPort/SerialPort.so
perl    614 fhem  mem    REG              179,7     13572 153823 /usr/lib/arm-linux-gnueabihf/perl5/5.32/auto/Text/Iconv/Iconv.so
perl    614 fhem  mem    REG              179,7     55004 156687 /usr/lib/arm-linux-gnueabihf/perl/5.32.1/auto/Compress/Raw/Zlib/Zlib.so
perl    614 fhem  mem    REG              179,7     22272  46757 /usr/lib/arm-linux-gnueabihf/perl-base/auto/File/Glob/Glob.so
perl    614 fhem  mem    REG              179,7     95880   2007 /lib/arm-linux-gnueabihf/libz.so.1.2.11
perl    614 fhem  mem    REG              179,7   2150824   7349 /usr/lib/arm-linux-gnueabihf/libcrypto.so.1.1
perl    614 fhem  mem    REG              179,7    463128   7350 /usr/lib/arm-linux-gnueabihf/libssl.so.1.1
perl    614 fhem  mem    REG              179,7    222048   9803 /usr/lib/arm-linux-gnueabihf/libmariadb.so.3
perl    614 fhem  mem    REG              179,7    107916 153686 /usr/lib/arm-linux-gnueabihf/perl5/5.32/auto/DBD/mysql/mysql.so
perl    614 fhem  mem    REG              179,7   1162508   2464 /usr/lib/arm-linux-gnueabihf/libsqlite3.so.0.8.6
perl    614 fhem  mem    REG              179,7     20740 157276 /usr/lib/arm-linux-gnueabihf/perl5/5.32/auto/Crypt/Rijndael/Rijndael.so
perl    614 fhem  mem    REG              179,7    144824 153654 /usr/lib/arm-linux-gnueabihf/perl5/5.32/auto/DBD/SQLite/SQLite.so
perl    614 fhem  mem    REG              179,7      9748  48151 /usr/lib/arm-linux-gnueabihf/perl-base/auto/attributes/attributes.so
perl    614 fhem  mem    REG              179,7     83208 153726 /usr/lib/arm-linux-gnueabihf/perl5/5.32/auto/Cpanel/JSON/XS/XS.so
perl    614 fhem  mem    REG              179,7     34580 156694 /usr/lib/arm-linux-gnueabihf/perl/5.32.1/auto/Data/Dumper/Dumper.so
perl    614 fhem  mem    REG              179,7    116064 153555 /usr/lib/arm-linux-gnueabihf/perl5/5.32/auto/DBI/DBI.so
perl    614 fhem  mem    REG              179,7     34336 156702 /usr/lib/arm-linux-gnueabihf/perl/5.32.1/auto/Digest/SHA/SHA.so
perl    614 fhem  mem    REG              179,7     18020 156700 /usr/lib/arm-linux-gnueabihf/perl/5.32.1/auto/Digest/MD5/MD5.so
perl    614 fhem  mem    REG              179,7     13832 156752 /usr/lib/arm-linux-gnueabihf/perl/5.32.1/auto/MIME/Base64/Base64.so
perl    614 fhem  mem    REG              179,7      9796 156741 /usr/lib/arm-linux-gnueabihf/perl/5.32.1/auto/I18N/Langinfo/Langinfo.so
perl    614 fhem  mem    REG              179,7      9476 168192 /usr/lib/arm-linux-gnueabihf/perl5/5.32/auto/Clone/Clone.so
perl    614 fhem  mem    REG              179,7     83868 156779 /usr/lib/arm-linux-gnueabihf/perl/5.32.1/auto/Storable/Storable.so
perl    614 fhem  mem    REG              179,7     34572 156710 /usr/lib/arm-linux-gnueabihf/perl/5.32.1/auto/Encode/Encode.so
perl    614 fhem  mem    REG              179,7     13904  45344 /usr/lib/arm-linux-gnueabihf/perl-base/auto/Cwd/Cwd.so
perl    614 fhem  mem    REG              179,7     84268  47357 /usr/lib/arm-linux-gnueabihf/perl-base/auto/POSIX/POSIX.so
perl    614 fhem  mem    REG              179,7     13788  46755 /usr/lib/arm-linux-gnueabihf/perl-base/auto/Fcntl/Fcntl.so
perl    614 fhem  mem    REG              179,7     46944  46901 /usr/lib/arm-linux-gnueabihf/perl-base/auto/List/Util/Util.so
perl    614 fhem  mem    REG              179,7     26220 156787 /usr/lib/arm-linux-gnueabihf/perl/5.32.1/auto/Time/HiRes/HiRes.so
perl    614 fhem  mem    REG              179,7     34484  48092 /usr/lib/arm-linux-gnueabihf/perl-base/auto/Socket/Socket.so
perl    614 fhem  mem    REG              179,7   3041472   9311 /usr/lib/locale/locale-archive
perl    614 fhem  mem    REG              179,7    210340  20240 /lib/arm-linux-gnueabihf/libcrypt.so.1.1.0
perl    614 fhem  mem    REG              179,7   1315688   2454 /lib/arm-linux-gnueabihf/libc-2.31.so
perl    614 fhem  mem    REG              179,7    137364   2492 /lib/arm-linux-gnueabihf/libpthread-2.31.so
perl    614 fhem  mem    REG              179,7    386572   2473 /lib/arm-linux-gnueabihf/libm-2.31.so
perl    614 fhem  mem    REG              179,7     13864   2467 /lib/arm-linux-gnueabihf/libdl-2.31.so
perl    614 fhem  mem    REG              179,7     13936  46759 /usr/lib/arm-linux-gnueabihf/perl-base/auto/IO/IO.so
perl    614 fhem  mem    REG              179,7     17708  57633 /usr/lib/arm-linux-gnueabihf/libarmmem-v7l.so
perl    614 fhem  mem    REG              179,7    146888   2446 /lib/arm-linux-gnueabihf/ld-2.31.so
perl    614 fhem  mem    REG              179,7     27006  14223 /usr/lib/arm-linux-gnueabihf/gconv/gconv-modules.cache
perl    614 fhem    0r   CHR                1,3       0t0      5 /dev/null
perl    614 fhem    1w   REG              179,7 357033920 520288 /opt/fhem/log/fhem-2023-11.log
perl    614 fhem    2w   REG              179,7 357033920 520288 /opt/fhem/log/fhem-2023-11.log
perl    614 fhem    3w   REG              179,7 357033920 520288 /opt/fhem/log/fhem-2023-11.log
perl    614 fhem    4u  IPv4              18514       0t0    TCP raspi4master.home:44554->lgwhomatic.home:2001 (ESTABLISHED)
perl    614 fhem    5u  unix 0x00000000c4e74238       0t0  16730 type=STREAM
perl    614 fhem    6u  unix 0x00000000912c8a71       0t0  16731 type=STREAM
perl    614 fhem    7u  IPv4              13978       0t0    TCP *:8083 (LISTEN)
perl    614 fhem    8w   REG              179,7 357033920 520288 /opt/fhem/log/fhem-2023-11.log
perl    614 fhem    9u  IPv4              16229       0t0    TCP *:7072 (LISTEN)
perl    614 fhem   10u   CHR              166,0       0t0    451 /dev/ttyACM0
perl    614 fhem   11u   CHR              188,0       0t0    457 /dev/ttyUSB0
perl    614 fhem   12u  IPv4              14103       0t0    TCP *:8090 (LISTEN)
perl    614 fhem   13w   REG              179,7    132502 520698 /opt/fhem/log/Kueche_D_FUD61-2023.log
perl    614 fhem   14u  IPv4              16317       0t0    TCP *:1885 (LISTEN)
perl    614 fhem   18u  IPv4              17631       0t0    TCP raspi4master.home:8083->raspi4master.home:32822 (ESTABLISHED)
perl    614 fhem   19u  IPv4              18509       0t0    TCP raspi4master.home:43430->lgw2homematic.home:cisco-sccp (ESTABLISHED)
perl    614 fhem   21u  IPv4              18515       0t0    TCP raspi4master.home:52688->philips-hue-00178863d31c.home:https (ESTABLISHED)
perl    614 fhem   22u  IPv4              18521       0t0    TCP raspi4master.home:1885->raspi4slave-1.home:55848 (ESTABLISHED)
perl    614 fhem   23u  IPv4              18510       0t0    TCP raspi4master.home:34514->lgwhomatic.home:cisco-sccp (ESTABLISHED)
perl    614 fhem   25u  IPv4              18512       0t0    TCP raspi4master.home:51744->lgw2homematic.home:2001 (ESTABLISHED)

Kann jemand damit was anfangen?


Ich hoffe, dass ich da keine heiklen Daten poste ;) Wie ihr merkt, bin ich ziemlich Anfänger ;)
Raspi3, EnOcean, Zwave, Homematic

fz55

Hallo choetzu,

ich hatte auch mal dieses Problem. Bei mir lag es daran, dass ich auf zwei MQTT-Brokern (mosquitto) MQTT-Bridges definiert hatte, die sich gegenseitig mit Messages befeuerten. Ich habe dann die Bridges-Definition nur bei einem Broker vorgenommen.

choetzu

#5
Hallo fz55

danke, bei mir ist das nicht der Fall. Ihc habe nur einen Mqtt2_Server und die 2 anderen Raspis verbinden sich damit (inkl. Generic Bridges). Das hat auch funktioniert.


Das Problem ist immer noch das gleiche. Gerade jetzt habe ich die 100% Last wieder und im Log kommt auch wieder
2023.11.24 15:33:10 1: Accept failed (telnetPort: Too many open files)
2023.11.24 15:33:10 1: Accept failed (WEB: Too many open files)

Ich habe folgendes während dem Fehler gemacht:
sudo lsof -p 16716
Und das kam raus:
COMMAND   PID USER   FD   TYPE             DEVICE SIZE/OFF   NODE NAME
perl    16716 fhem  cwd    DIR              179,7     4096 535430 /opt/fhem
perl    16716 fhem  rtd    DIR              179,7     4096      2 /
perl    16716 fhem  txt    REG              179,7  3201036  18175 /usr/bin/perl
perl    16716 fhem  mem    REG              179,7   155310  15437 /usr/share/locale/de/LC_MESSAGES/libc.mo
perl    16716 fhem  mem    REG              179,7   517384 144448 /usr/lib/arm-linux-gnueabihf/perl5/5.32/auto/Net/SSLeay/SSLeay.so
perl    16716 fhem  mem    REG              179,7    75608 156681 /usr/lib/arm-linux-gnueabihf/perl/5.32.1/auto/B/B.so
perl    16716 fhem  mem    REG              179,7    17972   2488 /lib/arm-linux-gnueabihf/libnss_dns-2.31.so
perl    16716 fhem  mem    REG              179,7    75568   2493 /lib/arm-linux-gnueabihf/libresolv-2.31.so
perl    16716 fhem  mem    REG              179,7    13760  14298 /lib/arm-linux-gnueabihf/libnss_mdns4_minimal.so.2
perl    16716 fhem  mem    REG              179,7    42628   2489 /lib/arm-linux-gnueabihf/libnss_files-2.31.so
perl    16716 fhem  mem    REG              179,7    17988  46758 /usr/lib/arm-linux-gnueabihf/perl-base/auto/Hash/Util/Util.so
perl    16716 fhem  mem    REG              179,7    13944 156697 /usr/lib/arm-linux-gnueabihf/perl/5.32.1/auto/Devel/Peek/Peek.so
perl    16716 fhem  mem    REG              179,7    17984 156720 /usr/lib/arm-linux-gnueabihf/perl/5.32.1/auto/Encode/Unicode/Unicode.so
perl    16716 fhem  mem    REG              179,7    58628 156963 /usr/lib/arm-linux-gnueabihf/perl5/5.32/auto/JSON/XS/XS.so
perl    16716 fhem  mem    REG              179,7     9448 157271 /usr/lib/arm-linux-gnueabihf/perl5/5.32/auto/Device/SerialPort/SerialPort.so
perl    16716 fhem  mem    REG              179,7    13572 153823 /usr/lib/arm-linux-gnueabihf/perl5/5.32/auto/Text/Iconv/Iconv.so
perl    16716 fhem  mem    REG              179,7    55004 156687 /usr/lib/arm-linux-gnueabihf/perl/5.32.1/auto/Compress/Raw/Zlib/Zlib.so
perl    16716 fhem  mem    REG              179,7    22272  46757 /usr/lib/arm-linux-gnueabihf/perl-base/auto/File/Glob/Glob.so
perl    16716 fhem  mem    REG              179,7    95880   2007 /lib/arm-linux-gnueabihf/libz.so.1.2.11
perl    16716 fhem  mem    REG              179,7  2150824   7349 /usr/lib/arm-linux-gnueabihf/libcrypto.so.1.1
perl    16716 fhem  mem    REG              179,7   463128   7350 /usr/lib/arm-linux-gnueabihf/libssl.so.1.1
perl    16716 fhem  mem    REG              179,7   222048   9803 /usr/lib/arm-linux-gnueabihf/libmariadb.so.3
perl    16716 fhem  mem    REG              179,7   107916 153686 /usr/lib/arm-linux-gnueabihf/perl5/5.32/auto/DBD/mysql/mysql.so
perl    16716 fhem  mem    REG              179,7  1162508   2464 /usr/lib/arm-linux-gnueabihf/libsqlite3.so.0.8.6
perl    16716 fhem  mem    REG              179,7    20740 157276 /usr/lib/arm-linux-gnueabihf/perl5/5.32/auto/Crypt/Rijndael/Rijndael.so
perl    16716 fhem  mem    REG              179,7   144824 153654 /usr/lib/arm-linux-gnueabihf/perl5/5.32/auto/DBD/SQLite/SQLite.so
perl    16716 fhem  mem    REG              179,7     9748  48151 /usr/lib/arm-linux-gnueabihf/perl-base/auto/attributes/attributes.so
perl    16716 fhem  mem    REG              179,7    83208 153726 /usr/lib/arm-linux-gnueabihf/perl5/5.32/auto/Cpanel/JSON/XS/XS.so
perl    16716 fhem  mem    REG              179,7    34580 156694 /usr/lib/arm-linux-gnueabihf/perl/5.32.1/auto/Data/Dumper/Dumper.so
perl    16716 fhem  mem    REG              179,7   116064 153555 /usr/lib/arm-linux-gnueabihf/perl5/5.32/auto/DBI/DBI.so
perl    16716 fhem  mem    REG              179,7    34336 156702 /usr/lib/arm-linux-gnueabihf/perl/5.32.1/auto/Digest/SHA/SHA.so
perl    16716 fhem  mem    REG              179,7    18020 156700 /usr/lib/arm-linux-gnueabihf/perl/5.32.1/auto/Digest/MD5/MD5.so
perl    16716 fhem  mem    REG              179,7    13832 156752 /usr/lib/arm-linux-gnueabihf/perl/5.32.1/auto/MIME/Base64/Base64.so
perl    16716 fhem  mem    REG              179,7     9796 156741 /usr/lib/arm-linux-gnueabihf/perl/5.32.1/auto/I18N/Langinfo/Langinfo.so
perl    16716 fhem  mem    REG              179,7     9476 168192 /usr/lib/arm-linux-gnueabihf/perl5/5.32/auto/Clone/Clone.so
perl    16716 fhem  mem    REG              179,7    83868 156779 /usr/lib/arm-linux-gnueabihf/perl/5.32.1/auto/Storable/Storable.so
perl    16716 fhem  mem    REG              179,7    34572 156710 /usr/lib/arm-linux-gnueabihf/perl/5.32.1/auto/Encode/Encode.so
perl    16716 fhem  mem    REG              179,7    13904  45344 /usr/lib/arm-linux-gnueabihf/perl-base/auto/Cwd/Cwd.so
perl    16716 fhem  mem    REG              179,7    84268  47357 /usr/lib/arm-linux-gnueabihf/perl-base/auto/POSIX/POSIX.so
perl    16716 fhem  mem    REG              179,7    13788  46755 /usr/lib/arm-linux-gnueabihf/perl-base/auto/Fcntl/Fcntl.so
perl    16716 fhem  mem    REG              179,7    46944  46901 /usr/lib/arm-linux-gnueabihf/perl-base/auto/List/Util/Util.so
perl    16716 fhem  mem    REG              179,7    26220 156787 /usr/lib/arm-linux-gnueabihf/perl/5.32.1/auto/Time/HiRes/HiRes.so
perl    16716 fhem  mem    REG              179,7    34484  48092 /usr/lib/arm-linux-gnueabihf/perl-base/auto/Socket/Socket.so
perl    16716 fhem  mem    REG              179,7  3041472   9311 /usr/lib/locale/locale-archive
perl    16716 fhem  mem    REG              179,7   210340  20240 /lib/arm-linux-gnueabihf/libcrypt.so.1.1.0
perl    16716 fhem  mem    REG              179,7  1315688   2454 /lib/arm-linux-gnueabihf/libc-2.31.so
perl    16716 fhem  mem    REG              179,7   137364   2492 /lib/arm-linux-gnueabihf/libpthread-2.31.so
perl    16716 fhem  mem    REG              179,7   386572   2473 /lib/arm-linux-gnueabihf/libm-2.31.so
perl    16716 fhem  mem    REG              179,7    13864   2467 /lib/arm-linux-gnueabihf/libdl-2.31.so
perl    16716 fhem  mem    REG              179,7    13936  46759 /usr/lib/arm-linux-gnueabihf/perl-base/auto/IO/IO.so
perl    16716 fhem  mem    REG              179,7    17708  57633 /usr/lib/arm-linux-gnueabihf/libarmmem-v7l.so
perl    16716 fhem  mem    REG              179,7   146888   2446 /lib/arm-linux-gnueabihf/ld-2.31.so
perl    16716 fhem  mem    REG              179,7    27006  14223 /usr/lib/arm-linux-gnueabihf/gconv/gconv-modules.cache
perl    16716 fhem    0r   CHR                1,3      0t0      5 /dev/null
perl    16716 fhem    1w   REG              179,7 46075730 520288 /opt/fhem/log/fhem-2023-11.log
perl    16716 fhem    2w   REG              179,7 46075730 520288 /opt/fhem/log/fhem-2023-11.log
perl    16716 fhem    3w   REG              179,7 46075730 520288 /opt/fhem/log/fhem-2023-11.log
perl    16716 fhem    4u  IPv4            1058597      0t0    TCP raspi4master.home:56956->lgw2homematic.home:cisco-sccp (ESTABLISHED)
perl    16716 fhem    5u  unix 0x00000000b168db5f      0t0 892381 type=STREAM
perl    16716 fhem    6u  unix 0x00000000bb3bbdf9      0t0 892382 type=STREAM
perl    16716 fhem    7u  IPv4             892383      0t0    TCP *:8083 (LISTEN)
perl    16716 fhem    8w   REG              179,7 46078144 520288 /opt/fhem/log/fhem-2023-11.log
perl    16716 fhem    9u  IPv4             892430      0t0    TCP *:7072 (LISTEN)
perl    16716 fhem   10u   CHR              166,0      0t0    451 /dev/ttyACM0
perl    16716 fhem   11u   CHR              188,0      0t0    457 /dev/ttyUSB0
perl    16716 fhem   12u  IPv4             893064      0t0    TCP *:8090 (LISTEN)
perl    16716 fhem   13w   REG              179,7   134348 520698 /opt/fhem/log/Kueche_D_FUD61-2023.log
perl    16716 fhem   14u  IPv4             893065      0t0    TCP *:1885 (LISTEN)
perl    16716 fhem   15u  IPv4            1058598      0t0    TCP raspi4master.home:58750->lgwhomatic.home:cisco-sccp (ESTABLISHED)
perl    16716 fhem   16u  IPv4             892440      0t0    TCP raspi4master.home:54714->philips-hue-00178863d31c.home:https (ESTABLISHED)
perl    16716 fhem   17u  IPv4             892469      0t0    TCP raspi4master.home:1885->raspi4slave-1.home:58038 (ESTABLISHED)
perl    16716 fhem   18u  IPv4             892479      0t0    TCP raspi4master.home:54098->172.64.148.188:https (CLOSE_WAIT)
perl    16716 fhem   19u  IPv4            1206655      0t0    TCP raspi4master.home:45886->104.18.39.68:https (ESTABLISHED)
perl    16716 fhem   20u  IPv4             892474      0t0    TCP raspi4master.home:39746->104.18.39.68:https (CLOSE_WAIT)
perl    16716 fhem   21u  IPv4            1058596      0t0    TCP raspi4master.home:44294->104.18.39.68:https (CLOSE_WAIT)
perl    16716 fhem   22u  IPv4            1058599      0t0    TCP raspi4master.home:33286->lgw2homematic.home:2001 (ESTABLISHED)
perl    16716 fhem   23u  IPv4             892483      0t0    TCP raspi4master.home:54104->172.64.148.188:https (CLOSE_WAIT)
perl    16716 fhem   24u  IPv4             893756      0t0    TCP raspi4master.home:33606->104.18.39.68:https (CLOSE_WAIT)
perl    16716 fhem   25u  IPv4             893075      0t0    TCP raspi4master.home:39766->104.18.39.68:https (CLOSE_WAIT)
perl    16716 fhem   26u  IPv4             892466      0t0    TCP raspi4master.home:8083->raspi4master.home:33730 (ESTABLISHED)
perl    16716 fhem   27u  IPv4             893100      0t0    TCP raspi4master.home:47580->172.64.148.188:https (CLOSE_WAIT)
perl    16716 fhem   28u  IPv4             893102      0t0    TCP raspi4master.home:54658->104.18.39.68:https (CLOSE_WAIT)
perl    16716 fhem   29u  IPv4             892614      0t0    TCP raspi4master.home:48074->104.18.39.68:https (CLOSE_WAIT)
perl    16716 fhem   30u  IPv4             899779      0t0    TCP raspi4master.home:50160->104.18.39.68:https (CLOSE_WAIT)
perl    16716 fhem   31u  IPv4             892897      0t0    TCP raspi4master.home:45426->172.64.148.188:https (CLOSE_WAIT)
perl    16716 fhem   32u  IPv4             894343      0t0    TCP raspi4master.home:59550->104.18.39.68:https (CLOSE_WAIT)
perl    16716 fhem   33u  IPv4             895404      0t0    TCP raspi4master.home:42764->172.64.148.188:https (CLOSE_WAIT)
perl    16716 fhem   34u  IPv4             893651      0t0    TCP raspi4master.home:50722->104.18.39.68:https (CLOSE_WAIT)
perl    16716 fhem   35u  IPv4             897176      0t0    TCP raspi4master.home:33568->104.18.39.68:https (CLOSE_WAIT)
perl    16716 fhem   36u  IPv4             897392      0t0    TCP raspi4master.home:53624->172.64.148.188:https (CLOSE_WAIT)
perl    16716 fhem   37u  IPv4             903265      0t0    TCP raspi4master.home:58254->172.64.148.188:https (CLOSE_WAIT)
perl    16716 fhem   38u  IPv4             897267      0t0    TCP raspi4master.home:52546->172.64.148.188:https (CLOSE_WAIT)
perl    16716 fhem   39u  IPv4             897495      0t0    TCP raspi4master.home:55870->172.64.148.188:https (CLOSE_WAIT)
perl    16716 fhem   40u  IPv4             899360      0t0    TCP raspi4master.home:47636->172.64.148.188:https (CLOSE_WAIT)
perl    16716 fhem   41u  IPv4             898607      0t0    TCP raspi4master.home:33988->104.18.39.68:https (CLOSE_WAIT)
perl    16716 fhem   42u  IPv4             899548      0t0    TCP raspi4master.home:46720->104.18.39.68:https (CLOSE_WAIT)
perl    16716 fhem   43u  IPv4             900268      0t0    TCP raspi4master.home:56166->172.64.148.188:https (CLOSE_WAIT)
perl    16716 fhem   44u  IPv4             901344      0t0    TCP raspi4master.home:52084->104.18.39.68:https (CLOSE_WAIT)
perl    16716 fhem   45u  IPv4             898858      0t0    TCP raspi4master.home:51608->104.18.39.68:https (CLOSE_WAIT)
perl    16716 fhem   46u  IPv4             903267      0t0    TCP raspi4master.home:58266->172.64.148.188:https (CLOSE_WAIT)
perl    16716 fhem   47u  IPv4             898994      0t0    TCP raspi4master.home:45532->172.64.148.188:https (CLOSE_WAIT)
perl    16716 fhem   48u  IPv4             903173      0t0    TCP raspi4master.home:54800->172.64.148.188:https (CLOSE_WAIT)
perl    16716 fhem   49u  IPv4             903241      0t0    TCP raspi4master.home:42766->172.64.148.188:https (CLOSE_WAIT)
perl    16716 fhem   50u  IPv4             903314      0t0    TCP raspi4master.home:48772->104.18.39.68:https (CLOSE_WAIT)
perl    16716 fhem   51u  IPv4             901724      0t0    TCP raspi4master.home:33496->104.18.39.68:https (CLOSE_WAIT)
perl    16716 fhem   52u  IPv4             901771      0t0    TCP raspi4master.home:52134->104.18.39.68:https (CLOSE_WAIT)
perl    16716 fhem   53u  IPv4             903446      0t0    TCP raspi4master.home:36898->104.18.39.68:https (CLOSE_WAIT)
perl    16716 fhem   54u  IPv4             900942      0t0    TCP raspi4master.home:37886->104.18.39.68:https (CLOSE_WAIT)
perl    16716 fhem   55u  IPv4             903537      0t0    TCP raspi4master.home:56412->104.18.39.68:https (CLOSE_WAIT)
perl    16716 fhem   56u  IPv4             903576      0t0    TCP raspi4master.home:33116->104.18.39.68:https (CLOSE_WAIT)
perl    16716 fhem   57u  IPv4             903628      0t0    TCP raspi4master.home:42936->104.18.39.68:https (CLOSE_WAIT)
perl    16716 fhem   58u  IPv4             902084      0t0    TCP raspi4master.home:46572->172.64.148.188:https (CLOSE_WAIT)
perl    16716 fhem   59u  IPv4             903699      0t0    TCP raspi4master.home:35082->104.18.39.68:https (CLOSE_WAIT)
perl    16716 fhem   60u  IPv4             906259      0t0    TCP raspi4master.home:38022->172.64.148.188:https (CLOSE_WAIT)
perl    16716 fhem   61u  IPv4             906332      0t0    TCP raspi4master.home:39694->104.18.39.68:https (CLOSE_WAIT)
perl    16716 fhem   62u  IPv4             903880      0t0    TCP raspi4master.home:36744->104.18.39.68:https (CLOSE_WAIT)
perl    16716 fhem   63u  IPv4             903955      0t0    TCP raspi4master.home:53354->104.18.39.68:https (CLOSE_WAIT)
perl    16716 fhem   64u  IPv4             906433      0t0    TCP raspi4master.home:33852->104.18.39.68:https (CLOSE_WAIT)
perl    16716 fhem   65u  IPv4             906463      0t0    TCP raspi4master.home:56830->172.64.148.188:https (CLOSE_WAIT)
perl    16716 fhem   66u  IPv4             906500      0t0    TCP raspi4master.home:48116->172.64.148.188:https (CLOSE_WAIT)
perl    16716 fhem   67u  IPv4             906536      0t0    TCP raspi4master.home:46562->172.64.148.188:https (CLOSE_WAIT)
perl    16716 fhem   68u  IPv4             906641      0t0    TCP raspi4master.home:50240->104.18.39.68:https (CLOSE_WAIT)
perl    16716 fhem   69u  IPv4             906882      0t0    TCP raspi4master.home:36852->104.18.39.68:https (CLOSE_WAIT)
perl    16716 fhem   70u  IPv4             906909      0t0    TCP raspi4master.home:43096->172.64.148.188:https (CLOSE_WAIT)
perl    16716 fhem   71u  IPv4             906919      0t0    TCP raspi4master.home:60408->104.18.39.68:https (CLOSE_WAIT)
perl    16716 fhem   72u  IPv4             907674      0t0    TCP raspi4master.home:53624->104.18.39.68:https (CLOSE_WAIT)
perl    16716 fhem   73u  IPv4             907732      0t0    TCP raspi4master.home:58640->172.64.148.188:https (CLOSE_WAIT)
perl    16716 fhem   74u  IPv4             907779      0t0    TCP raspi4master.home:36632->172.64.148.188:https (CLOSE_WAIT)
perl    16716 fhem   75u  IPv4             907832      0t0    TCP raspi4master.home:56694->104.18.39.68:https (CLOSE_WAIT)
perl    16716 fhem   76u  IPv4             907899      0t0    TCP raspi4master.home:50058->172.64.148.188:https (CLOSE_WAIT)
perl    16716 fhem   77u  IPv4             907950      0t0    TCP raspi4master.home:38324->172.64.148.188:https (CLOSE_WAIT)
perl    16716 fhem   78u  IPv4             909644      0t0    TCP raspi4master.home:36388->104.18.39.68:https (CLOSE_WAIT)
perl    16716 fhem   79u  IPv4             909818      0t0    TCP raspi4master.home:45286->104.18.39.68:https (CLOSE_WAIT)
perl    16716 fhem   80u  IPv4             909889      0t0    TCP raspi4master.home:51726->172.64.148.188:https (CLOSE_WAIT)
perl    16716 fhem   81u  IPv4             909965      0t0    TCP raspi4master.home:33474->172.64.148.188:https (CLOSE_WAIT)
perl    16716 fhem   82u  IPv4             909995      0t0    TCP raspi4master.home:50670->104.18.39.68:https (CLOSE_WAIT)
perl    16716 fhem   83u  IPv4             910068      0t0    TCP raspi4master.home:55816->172.64.148.188:https (CLOSE_WAIT)
perl    16716 fhem   84u  IPv4             910100      0t0    TCP raspi4master.home:42146->104.18.39.68:https (CLOSE_WAIT)
perl    16716 fhem   85u  IPv4             910891      0t0    TCP raspi4master.home:33660->172.64.148.188:https (CLOSE_WAIT)
perl    16716 fhem   86u  IPv4             910263      0t0    TCP raspi4master.home:43600->172.64.148.188:https (CLOSE_WAIT)
perl    16716 fhem   87u  IPv4             913409      0t0    TCP raspi4master.home:34066->172.64.148.188:https (CLOSE_WAIT)
perl    16716 fhem   88u  IPv4             913514      0t0    TCP raspi4master.home:41626->104.18.39.68:https (CLOSE_WAIT)
perl    16716 fhem   89u  IPv4             913128      0t0    TCP raspi4master.home:46376->104.18.39.68:https (CLOSE_WAIT)
perl    16716 fhem   90u  IPv4             913748      0t0    TCP raspi4master.home:60842->172.64.148.188:https (CLOSE_WAIT)
perl    16716 fhem   91u  IPv4             913885      0t0    TCP raspi4master.home:38388->172.64.148.188:https (CLOSE_WAIT)
perl    16716 fhem   92u  IPv4             914526      0t0    TCP raspi4master.home:47710->104.18.39.68:https (CLOSE_WAIT)
perl    16716 fhem   93u  IPv4             914528      0t0    TCP raspi4master.home:33734->172.64.148.188:https (CLOSE_WAIT)
perl    16716 fhem   94u  IPv4             916496      0t0    TCP raspi4master.home:48648->104.18.39.68:https (CLOSE_WAIT)
perl    16716 fhem   95u  IPv4             914281      0t0    TCP raspi4master.home:57114->104.18.39.68:https (CLOSE_WAIT)
perl    16716 fhem   96u  IPv4             917540      0t0    TCP raspi4master.home:40314->172.64.148.188:https (CLOSE_WAIT)
perl    16716 fhem   97u  IPv4             917019      0t0    TCP raspi4master.home:58196->172.64.148.188:https (CLOSE_WAIT)
perl    16716 fhem   98u  IPv4             917232      0t0    TCP raspi4master.home:52996->172.64.148.188:https (CLOSE_WAIT)
perl    16716 fhem   99u  IPv4             919569      0t0    TCP raspi4master.home:37728->104.18.39.68:https (CLOSE_WAIT)
perl    16716 fhem  100u  IPv4             919779      0t0    TCP raspi4master.home:47438->172.64.148.188:https (CLOSE_WAIT)
perl    16716 fhem  101u  IPv4             918366      0t0    TCP raspi4master.home:45786->172.64.148.188:https (CLOSE_WAIT)
perl    16716 fhem  102u  IPv4             920172      0t0    TCP raspi4master.home:53016->104.18.39.68:https (CLOSE_WAIT)
perl    16716 fhem  103u  IPv4             920305      0t0    TCP raspi4master.home:33098->104.18.39.68:https (CLOSE_WAIT)
perl    16716 fhem  104u  IPv4             920428      0t0    TCP raspi4master.home:50678->172.64.148.188:https (CLOSE_WAIT)
perl    16716 fhem  105u  IPv4             922627      0t0    TCP raspi4master.home:37164->104.18.39.68:https (CLOSE_WAIT)
perl    16716 fhem  106u  IPv4             922217      0t0    TCP raspi4master.home:35068->172.64.148.188:https (CLOSE_WAIT)
perl    16716 fhem  107u  IPv4             922435      0t0    TCP raspi4master.home:37104->104.18.39.68:https (CLOSE_WAIT)
perl    16716 fhem  108u  IPv4             925732      0t0    TCP raspi4master.home:33570->172.64.148.188:https (CLOSE_WAIT)
perl    16716 fhem  109u  IPv4             926008      0t0    TCP raspi4master.home:38882->104.18.39.68:https (CLOSE_WAIT)
perl    16716 fhem  110u  IPv4             926759      0t0    TCP raspi4master.home:55062->104.18.39.68:https (CLOSE_WAIT)
perl    16716 fhem  111u  IPv4             926428      0t0    TCP raspi4master.home:50562->172.64.148.188:https (CLOSE_WAIT)
perl    16716 fhem  112u  IPv4             928131      0t0    TCP raspi4master.home:58230->104.18.39.68:https (CLOSE_WAIT)
perl    16716 fhem  113u  IPv4             927169      0t0    TCP raspi4master.home:50912->172.64.148.188:https (CLOSE_WAIT)
perl    16716 fhem  114u  IPv4             927296      0t0    TCP raspi4master.home:43156->104.18.39.68:https (CLOSE_WAIT)
perl    16716 fhem  115u  IPv4             927298      0t0    TCP raspi4master.home:47286->172.64.148.188:https (CLOSE_WAIT)
perl    16716 fhem  116u  IPv4             927374      0t0    TCP raspi4master.home:45118->172.64.148.188:https (CLOSE_WAIT)
perl    16716 fhem  117u  IPv4             927468      0t0    TCP raspi4master.home:50514->104.18.39.68:https (CLOSE_WAIT)
perl    16716 fhem  118u  IPv4             929106      0t0    TCP raspi4master.home:59600->104.18.39.68:https (CLOSE_WAIT)
perl    16716 fhem  119u  IPv4             930955      0t0    TCP raspi4master.home:32964->104.18.39.68:https (CLOSE_WAIT)
perl    16716 fhem  120u  IPv4             927687      0t0    TCP raspi4master.home:42360->172.64.148.188:https (CLOSE_WAIT)
perl    16716 fhem  121u  IPv4             929325      0t0    TCP raspi4master.home:44120->104.18.39.68:https (CLOSE_WAIT)
perl    16716 fhem  122u  IPv4             929426      0t0    TCP raspi4master.home:38490->104.18.39.68:https (CLOSE_WAIT)
perl    16716 fhem  123u  IPv4             930694      0t0    TCP raspi4master.home:40970->172.64.148.188:https (CLOSE_WAIT)
perl    16716 fhem  124u  IPv4             930743      0t0    TCP raspi4master.home:38688->104.18.39.68:https (CLOSE_WAIT)
perl    16716 fhem  125u  IPv4             929546      0t0    TCP raspi4master.home:39858->172.64.148.188:https (CLOSE_WAIT)
perl    16716 fhem  126u  IPv4             929612      0t0    TCP raspi4master.home:38186->104.18.39.68:https (CLOSE_WAIT)
perl    16716 fhem  127u  IPv4             929670      0t0    TCP raspi4master.home:50072->172.64.148.188:https (CLOSE_WAIT)
perl    16716 fhem  128u  IPv4             929746      0t0    TCP raspi4master.home:38776->104.18.39.68:https (CLOSE_WAIT)
perl    16716 fhem  129u  IPv4             932379      0t0    TCP raspi4master.home:37762->104.18.39.68:https (CLOSE_WAIT)
perl    16716 fhem  130u  IPv4             931641      0t0    TCP raspi4master.home:59470->172.64.148.188:https (CLOSE_WAIT)
perl    16716 fhem  131u  IPv4             931716      0t0    TCP raspi4master.home:57106->104.18.39.68:https (CLOSE_WAIT)
perl    16716 fhem  132u  IPv4             934060      0t0    TCP raspi4master.home:36606->172.64.148.188:https (CLOSE_WAIT)
perl    16716 fhem  133u  IPv4             934139      0t0    TCP raspi4master.home:50316->104.18.39.68:https (CLOSE_WAIT)
perl    16716 fhem  134u  IPv4             934184      0t0    TCP raspi4master.home:42756->172.64.148.188:https (CLOSE_WAIT)
perl    16716 fhem  135u  IPv4             934235      0t0    TCP raspi4master.home:34942->104.18.39.68:https (CLOSE_WAIT)
perl    16716 fhem  136u  IPv4             933365      0t0    TCP raspi4master.home:51594->172.64.148.188:https (CLOSE_WAIT)
perl    16716 fhem  137u  IPv4             933367      0t0    TCP raspi4master.home:51608->172.64.148.188:https (CLOSE_WAIT)
perl    16716 fhem  138u  IPv4             933387      0t0    TCP raspi4master.home:46612->104.18.39.68:https (CLOSE_WAIT)
perl    16716 fhem  139u  IPv4             933451      0t0    TCP raspi4master.home:39684->104.18.39.68:https (CLOSE_WAIT)
perl    16716 fhem  140u  IPv4             933474      0t0    TCP raspi4master.home:44210->104.18.39.68:https (CLOSE_WAIT)
perl    16716 fhem  141u  IPv4             935968      0t0    TCP raspi4master.home:46044->172.64.148.188:https (CLOSE_WAIT)
perl    16716 fhem  142u  IPv4             934434      0t0    TCP raspi4master.home:40510->104.18.39.68:https (CLOSE_WAIT)
perl    16716 fhem  143u  IPv4             934495      0t0    TCP raspi4master.home:56284->172.64.148.188:https (CLOSE_WAIT)

....usw das geht noch ewigs so weiter und kann ich hier nicht alles platzieren..

Was könnte der Fehler sein?
Raspi3, EnOcean, Zwave, Homematic

choetzu

Ich sehe, dass Perl enorm viele Zugriffe auf
perl    16716 fhem  142u  IPv4             934434      0t0    TCP raspi4master.home:40510->104.18.39.68:https (CLOSE_WAIT)
perl    16716 fhem  143u  IPv4             934495      0t0    TCP raspi4master.home:56284->172.64.148.188:https (CLOSE_WAIT)
macht. Sprich auf die IP Nummern 172.64.148.188 und 104.18.39.68. Wie finde ich raus, welches Modul auf diese IP Nummern zugreift? Ein IP Lookup hat Cloudfare ergeben. Das sagt aber merklich wenig.

Danke für die Hilfe.
Raspi3, EnOcean, Zwave, Homematic

Felix_86

Hallo,

welche Module hast du denn im Einsatz, die Internet Services nutzen/ansprechen?
Evtl. kannst du diese mal nacheinander deaktivieren und schauen, wann die vielen Zugriffe stoppen.
Grüße von Felix

Pi3, Raspbian 11, FHEM 6.2, ca 320 Device
SIGNALduino (TCM, TX, IT, SD_GT), CUL (EM, FS20, HMS), JeeLink (PCA301), HUEBridge, HUEDevice, mailcheck, echodevice, alexa, TelegramBot, Weather (OWM), DWD_OpenData, FRITZBOX, TabletUI, Calendar, Abfall, Vitoconnect, LGTV_WebOS, Nina, MQTT2