Cannot fork: Cannot allocate memory | BlockingInformParent

Begonnen von Burny4600, 14 Februar 2018, 10:33:06

Vorheriges Thema - Nächstes Thema

Nighthawk

Hier schon mal die Werte nach einem Neustart:

total        used        free      shared  buff/cache   available
Mem:         949476      207172      546480       21624      195824      669700
Swap:        102396           0      102396


und die zugehörigen ps Angaben:
1 S fhem       466     1 20  80   0 - 27273 -      11:44 ?        00:04:15 perl fhem.pl fhem.cfg
1 S fhem      1578   466  0  80   0 - 27314 -      12:03 ?        00:00:00 perl fhem.pl fhem.cfg
0 S fhem      1617   466  0  80   0 -   475 wait   12:04 ?        00:00:00 sh -c ps -elf | grep fhem
0 R fhem      1618  1617  0  80   0 -  2035 -      12:04 ?        00:00:00 ps -elf
0 S fhem      1619  1617  0  80   0 -  1194 pipe_w 12:04 ?        00:00:00 grep fhem



Werte im Fehlerfall reiche ich heute Abend odre morgen nach.

Wernieman

nimm bei ps mal, anstatt "-elf", den aux:
ps aux
Dort steht (meiner Meinung nach) der Memory Verbrauch "besser" drin
- Bitte um Input für Output
- When there is a Shell, there is a Way
- Wann war Dein letztes Backup?

Wie man Fragen stellt: https://tty1.net/smart-questions_de.html

Nighthawk

#17
Hallo Rudi,

hier die Daten im Fehlerfall:

ps -elf:
1 S fhem       472     1 21  80   0 - 92575 -      Feb18 ?        03:19:41 perl fhem.pl fhem.cfg
1 S fhem     32522   472  0  80   0 - 92641 -      06:29 ?        00:00:00 perl fhem.pl fhem.cfg
0 S fhem     32584   472  0  80   0 -   475 wait   06:30 ?        00:00:00 sh -c ps -elf | grep fhem
0 R fhem     32585 32584  0  80   0 -  2035 -      06:30 ?        00:00:00 ps -elf
0 S fhem     32586 32584  0  80   0 -  1194 pipe_w 06:30 ?        00:00:00 grep fhem


ps -aux
fhem       472 21.4 37.9 370556 360452 ?       S    Feb18 200:04 perl fhem.pl fhem.cfg
fhem     32522  0.1 37.5 370564 356064 ?       S    06:29   0:00 perl fhem.pl fhem.cfg
fhem     32657  0.0  0.0   1900   372 ?        S    06:32   0:00 sh -c ps -aux | grep fhem
fhem     32658  0.0  0.3   8140  2944 ?        R    06:32   0:00 ps -aux
fhem     32659  0.0  0.0   4776   556 ?        S    06:32   0:00 grep fhem


free:
              total        used        free      shared  buff/cache   available
Mem:         949476      604236       83648       21744      261592      271516
Swap:        102396        6144       96252



Im log sind jetzt sehr viele von folgenden Meldungen:
2018.02.19 07:05:39 4: Closing connection WEB_192.168.178.97_61103 due to full buffer in FW_Notify
2018.02.19 07:05:39 4: Closing connection WEBtablet_192.168.178.23_45706 due to full buffer in FW_Notify
2018.02.19 07:05:39 4: Closing connection WEBtablet_192.168.178.92_34340 due to full buffer in FW_Notify
2018.02.19 07:05:39 4: Closing connection WEB_192.168.178.97_61103 due to full buffer in FW_Notify
2018.02.19 07:05:39 4: Closing connection WEBtablet_192.168.178.23_45706 due to full buffer in FW_Notify
2018.02.19 07:05:39 4: Closing connection WEBtablet_192.168.178.92_34340 due to full buffer in FW_Notify

Wernieman

ZitatFW_Notify
Was macht das?

FHEM braucht laut Deiner Anzeige c.a. 75% des Speichers ...
- Bitte um Input für Output
- When there is a Shell, there is a Way
- Wann war Dein letztes Backup?

Wie man Fragen stellt: https://tty1.net/smart-questions_de.html

rudolfkoenig

Wenn ich "man ps" richtig verstehe, dann hat dein FHEM mit 110MB (27k*4k) gestartet, und ist in ca 18 Stunden auf 360MB (in ps -elf: 92k*4k) gewachsen. Macht im Durchschnitt 240k Speicherverlust pro Minute, mAn sehr viel. Im Durchschnitt hat es auch 18%CPU verbraucht.

Zitat2018.02.19 07:05:39 4: Closing connection WEB_192.168.178.97_61103 due to full buffer in FW_Notify
FHEMWEB versucht Clients via longpoll bzw. websocket zu benachrichtigen, diese nehmen die Daten aber nicht ab. Falls der Zwischenpuffer 100k uebersteigt, wird die Verbindung gekappt. Merkwuerdig: alle drei Clients (XX.XX.XX.97, 23, 92) haben jeweils eine longpoll Verbindung zu zwei unterschiedlichen FHEMWEB Instanzen offen.

Habe im Moment keine Idee, woran es liegen koennte, evtl. hilft ein "list .* TYPE", um eine Ahnung von der Menge und Art der Geraete zu kriegen.
Du koenntest natuerlich auch mit der groben Methode der "Reihe nach Abschaltung einzelner Module" das Problem eingrenzen.

Zur Klarstellung an "Neulinge": mein Produktions-FHEM laeuft normalerweise mehrere Monate lang ohne Neustart, CPU ist unter 1%.
Ich will ab und zu mein Code selbst testen, deswegen starte ich FHEM neu.

Nighthawk

Hallo Rudi,

das mit dem Abschalten einzelner Module habe ich auch schon  begonnen, leider habe ich die Befürchtung dass es eines der Essentiellen Module wie FHEMWEB oder DBLOG ist, welche ich nicht abschalten möchte.
Was mich wundert ist eben dass das Problem unter Stretch immer da ist (hab schon 5 oder 6 mal alles neu aufgesetzt), unter Jessie aber absolut stabil läuft.

Burny4600

@rudolfkönig

Ich habe mir die Jessie Installation angesehen welcher PI welches Image bekommen hat.
Alle Jessie Lite haben den Fehler Cannot fork: Cannot allocate memory nicht.
Die beiden letzten neu aufgesetzten Jessie Strech Lite bingen immer wieder nach längerer Laufzeit Cannot fork: Cannot allocate memory.
Bei einem System habe ich die Speicher Belegungen nach dem Neustart und dem Lauf nach einem Tag festgehalten.

ccs-ht-rasp02 nach NEUSTART
list .* TYPE
AB_FR_HZG_PFA2H          readingsProxy
AB_FR_HZG_PFA2HD         dummy
AB_FR_HZG_PFA2HN         notify
AB_P_DS                  readingsProxy
AB_P_DSFRD               dummy
AB_P_DSFRN               notify
AB_P_PP_STS              readingsProxy
AB_P_PP_STSD             dummy
AB_P_PP_STSN             notify
AB_P_ST_DT09T04D         dummy
AB_P_ST_PPPA2            readingsProxy
AB_P_ST_PPPA2.PID        PID20
AB_P_ST_PPPA2.PID.File     FileLog
AB_P_ST_PPPA2.PID.PWMST     DOIF
AB_P_ST_PPPA2.PID.PWMST.File     FileLog
AB_P_ST_PPPA2.PIDD       dummy
AB_P_ST_PPPFA2.PIDST     DOIF
AB_P_ST_PPPFA2D          dummy
AB_P_ST_V2               readingsProxy
AB_P_ST_V2D              dummy
AB_P_ST_V2N              notify
AB_P_ZP                  readingsProxy
AB_P_ZPFSD               dummy
AB_P_ZPFSN               notify
AB_P_ZPHZD               dummy
AB_P_ZPHZN               notify
AB_P_ZPPSD               dummy
AB_P_ZPPSN               notify
AB_SSP_ST_V1             readingsProxy
AB_SSP_ST_V1D            dummy
AB_SSP_ST_V1DN           notify
Aktueller_Verbrauch      readingsGroup
DL2                      HTTPMOD
DL2_CS10                 readingsProxy
DL2_R1                   readingsProxy
DL2_R2                   readingsProxy
DL2_R3                   readingsProxy
DL2_R4                   readingsProxy
DL2_R5                   readingsProxy
DL2_R6                   readingsProxy
DL2_R7                   readingsProxy
DL2_R8                   readingsProxy
DL2_R9                   readingsProxy
DL2_SZ                   readingsProxy
DL2_T01                  readingsProxy
DL2_T02                  readingsProxy
DL2_T03                  readingsProxy
DL2_T04                  readingsProxy
DL2_T05                  readingsProxy
DL2_T06                  readingsProxy
DL2_T07                  readingsProxy
DL2_T08                  readingsProxy
DL2_T09                  readingsProxy
DL2_T10                  readingsProxy
DL2_T11                  readingsProxy
DL2_T12                  readingsProxy
DL2_WMZ1IP               readingsProxy
DL2_WMZ1RT               readingsProxy
DL2_WMZ1VS               readingsProxy
DL2_WMZ1VT               readingsProxy
DL2_WMZ1W                readingsProxy
DL2_WMZ2IP               readingsProxy
DL2_WMZ2RT               readingsProxy
DL2_WMZ2VS               readingsProxy
DL2_WMZ2VT               readingsProxy
DL2_WMZ2W                readingsProxy
EnergieAB                JSONMETER
EnergieEG                JSONMETER
EnergieOG1               JSONMETER
EnergieOG2               JSONMETER
EnergiePV                JSONMETER
F2F_Rasp01               FHEM2FHEM
FileLog_DL2              FileLog
FileLog_DL2_T04k         FileLog
FileLog_EnergieAB        FileLog
FileLog_EnergieEG        FileLog
FileLog_EnergieOG1       FileLog
FileLog_EnergieOG2       FileLog
FileLog_EnergiePV        FileLog
FileLog_EnergieSV        FileLog
FileLog_sysmon           FileLog
HTZ_SDM630M_1            ModbusSDM630M
INT                      RPI_GPIO
Logfile                  FileLog
MBA                      ModbusAttr
ModbusRS485              Modbus
NTFY_BackupRun           at
OG2_HZR_HZG_PSSP         readingsProxy
OG2_HZR_HZG_PSSPD        dummy
OG2_HZR_HZG_PSSPN        notify
OG2_HZR_H_HS             readingsProxy
OG2_HZR_H_HSD            dummy
OG2_HZR_H_HSN            notify
OG2_HZR_NS_APC           readingsProxy
OG2_HZR_NS_APCUEW        readingsProxy
OG2_HZR_P_APS            readingsProxy
OG2_HZR_P_APSD           dummy
OG2_HZR_P_APSN           notify
OG2_HZR_STSP_HTE         readingsProxy
OG2_HZR_STSP_HTI         readingsProxy
OG2_HZR_ST_DT07T08D      dummy
OG2_HZR_ST_DT12T08D      dummy
OG2_HZR_ST_HVPA3         readingsProxy
OG2_HZR_ST_HVPA3.PID     PID20
OG2_HZR_ST_HVPA3.PID.File     FileLog
OG2_HZR_ST_HVPA3.PID.PWMST     DOIF
OG2_HZR_ST_HVPA3.PID.PWMST.File     FileLog
OG2_HZR_ST_HVPA3.PIDD     dummy
OG2_HZR_ST_HVPFA3.PIDST     DOIF
OG2_HZR_ST_HVPFA3D       dummy
OG2_HZR_ST_HVVV3         readingsProxy
OG2_HZR_ST_HVVV3D        dummy
OG2_HZR_ST_HVVV3N        notify
OG2_HZR_ST_KVPA5         readingsProxy
OG2_HZR_ST_KVPA5.PID     PID20
OG2_HZR_ST_KVPA5.PID.File     FileLog
OG2_HZR_ST_KVPA5.PID.PWMST     DOIF
OG2_HZR_ST_KVPA5.PID.PWMST.File     FileLog
OG2_HZR_ST_KVPA5.PIDD     dummy
OG2_HZR_ST_KVPFA5.PIDST     DOIF
OG2_HZR_ST_KVPFA5D       dummy
OG2_HZR_ST_PSSSPPA1      readingsProxy
OG2_HZR_ST_WWZPA4        readingsProxy
OG2_HZR_ST_WWZPA4D       dummy
OG2_HZR_ST_WWZPA4N       notify
PVA1                     FileLog
PVA1_M                   FileLog
PVA1_Y                   FileLog
RpiI2C_1                 RPII2C
SUSV                     I2C_SUSV
SVG_AB_P_ST_PPPA2.PID.File     SVG
SVG_DL2Solar01           SVG
SVG_DL2Solar02           SVG
SVG_DL2Solar03           SVG
SVG_DL2Solar04           SVG
SVG_EnergieAB            SVG
SVG_EnergieEG            SVG
SVG_EnergieOG1           SVG
SVG_EnergieOG2           SVG
SVG_EnergiePV            SVG
SVG_EnergieSV            SVG
SVG_OG2_HZR_ST_HVPA3.PID.File     SVG
SVG_OG2_HZR_ST_KVPA5.PID.File     SVG
SVG_PVA1                 SVG
SVG_PVA1_M               SVG
SVG_PVA1_Y               SVG
SolarThermie             FLOORPLAN
SysValues                weblink
WEB                      FHEMWEB
WEB_192.168.17.40_52920     FHEMWEB
WEBphone                 FHEMWEB
WEBtablet                FHEMWEB
allowed_WEB              allowed
allowed_WEBphone         allowed
allowed_WEBtablet        allowed
allowed_telnetPort       allowed
autocreate               autocreate
eventTypes               eventTypes
global                   Global
initNotify               notify
lp                       logProxy
mcp23017_B1_HZR          I2C_MCP23017
mcp23017_B1_HZR_A4       readingsProxy
mcp23017_B1_HZR_A5       readingsProxy
mcp23017_B1_HZR_A6       readingsProxy
mcp23017_B1_HZR_A7       readingsProxy
mcp23017_B1_HZR_B0       readingsProxy
mcp23017_B1_HZR_B1       readingsProxy
mcp23017_B1_HZR_B2       readingsProxy
mcp23017_B1_HZR_B3       readingsProxy
mcp23017_B1_HZR_B4       readingsProxy
mcp23017_B1_HZR_B5       readingsProxy
mcp23017_B2_HZR          I2C_MCP23017
mcp23017_B2_HZR_A3       readingsProxy
mcp23017_B2_HZR_B0       readingsProxy
mcp23017_B2_HZR_B6       readingsProxy
resolpump                readingsGroup
resoltemp                readingsGroup
resolwmz1                readingsGroup
resolwmz2                readingsGroup
sysmon                   SYSMON
telnetForBlockingFn_1519039922     telnet
telnetPort               telnet
telnetPort_192.168.17.131_33750     telnet
telnetPort_192.168.17.181_43502     telnet
wl_sysmon_cpustat        SVG
wl_sysmon_cpustatT       SVG
wl_sysmon_cpustat_s      SVG
wl_sysmon_eth0           SVG
wl_sysmon_fs_root        SVG
wl_sysmon_fs_usb1        SVG
wl_sysmon_load           SVG
wl_sysmon_power_ac       SVG
wl_sysmon_power_bat      SVG
wl_sysmon_ram            SVG
wl_sysmon_temp           SVG
wl_sysmon_wlan0          SVG


{ `ps -elf | grep fhem` }
1 S fhem      1300     1  8  80   0 - 10530 -      12:49 pts/0    00:00:08 perl fhem.pl fhem.cfg
0 S fhem      1374  1300  0  80   0 -   475 wait   12:50 pts/0    00:00:00 sh -c ps -elf | grep fhem
0 R fhem      1375  1374  0  80   0 -  1934 -      12:50 pts/0    00:00:00 ps -elf
0 S fhem      1376  1374  0  80   0 -  1093 pipe_w 12:50 pts/0    00:00:00 grep fhem


{ `ps aux | grep fhem` }
fhem      1300  6.4  3.9  42120 37908 pts/0    S    12:49   0:10 perl fhem.pl fhem.cfg
fhem      1411  0.0  0.0   1900   392 pts/0    S    12:51   0:00 sh -c ps aux | grep fhem
fhem      1412  0.0  0.3   7736  2948 pts/0    R    12:51   0:00 ps aux
fhem      1413  0.0  0.0   4372   560 pts/0    S    12:51   0:00 grep fhem


BlockingInfo
No BlockingCall processes running currently

fhemdebug memusage
1. defs                             628368
   2. modules                          340298
   3. attr                             187987
   4. FW_RET                           186850
   5. modules::eventTypes               79226
   6. modules::eventTypes::ldata        78164
   7. modules::ModbusSDM630M            61866
   8. modules::ModbusSDM630M::parseInfo    55649
   9. defs::HTZ_SDM630M_1               52176
  10. defs::sysmon                      48548
  11. defs::DL2                         43676
  12. defs::HTZ_SDM630M_1::READINGS     41981
  13. POSIX::                           37247
  14. defs::sysmon::READINGS            32161
  15. defs::DL2::READINGS               21484
  16. defs::OG2_HZR_ST_KVPA5.PID.PWMST    16578
  17. defs::OG2_HZR_ST_HVPA3.PID.PWMST    16578
  18. defs::AB_P_ST_PPPA2.PID.PWMST     16203
  19. Socket::                          15972
  20. defs::sysmon::helper              15254
  21. attr::DL2                         13340
  22. defs::sysmon::helper::cur_readings_map    13070
  23. defs::DL2::defptr                 12288
  24. defs::OG2_HZR_ST_KVPA5.PID        10420
  25. defs::AB_P_ST_PPPA2.PID           10397
  26. defs::OG2_HZR_ST_HVPA3.PID        10293
  27. oldvalue                          10119
  28. modules::eventTypes::ldata::HTZ_SDM630M_1     9373
  29. defs::mcp23017_B1_HZR              8443
  30. Fcntl::                            8426
  31. INC                                8336
  32. defs::mcp23017_B2_HZR              8243
  33. Errno::                            7893
  34. defs::mcp23017_B1_HZR::READINGS     7331
  35. defs::SUSV                         7308
  36. defs::mcp23017_B2_HZR::READINGS     7123
  37. defs::AB_P_ST_PPPFA2.PIDST         6366
  38. defs::HTZ_SDM630M_1::lastRead      6303
  39. defs::OG2_HZR_ST_KVPFA5.PIDST      6188
  40. defs::OG2_HZR_ST_HVPFA3.PIDST      6188
  41. defs::Aktueller_Verbrauch          5369
  42. defs::SUSV::READINGS               4529
  43. defs::INT                          4470
  44. modules::ModbusAttr                4429
  45. defs::resoltemp                    4399
  46. defs::ModbusRS485                  4331
  47. defs::OG2_HZR_ST_KVPA5.PID::READINGS     4220
  48. defs::AB_P_ST_PPPA2.PID::READINGS     4216
  49. defs::OG2_HZR_ST_HVPA3.PID::READINGS     4203
  50. modules::eventTypes::ldata::OG2_HZR_ST_KVPA5.PID.PWMST     4187


#########################################
Am nächstem Tag

list .* TYPE
AB_FR_HZG_PFA2H          readingsProxy
AB_FR_HZG_PFA2HD         dummy
AB_FR_HZG_PFA2HN         notify
AB_P_DS                  readingsProxy
AB_P_DSFRD               dummy
AB_P_DSFRN               notify
AB_P_PP_STS              readingsProxy
AB_P_PP_STSD             dummy
AB_P_PP_STSN             notify
AB_P_ST_DT09T04D         dummy
AB_P_ST_PPPA2            readingsProxy
AB_P_ST_PPPA2.PID        PID20
AB_P_ST_PPPA2.PID.File     FileLog
AB_P_ST_PPPA2.PID.PWMST     DOIF
AB_P_ST_PPPA2.PID.PWMST.File     FileLog
AB_P_ST_PPPA2.PIDD       dummy
AB_P_ST_PPPFA2.PIDST     DOIF
AB_P_ST_PPPFA2D          dummy
AB_P_ST_V2               readingsProxy
AB_P_ST_V2D              dummy
AB_P_ST_V2N              notify
AB_P_ZP                  readingsProxy
AB_P_ZPFSD               dummy
AB_P_ZPFSN               notify
AB_P_ZPHZD               dummy
AB_P_ZPHZN               notify
AB_P_ZPPSD               dummy
AB_P_ZPPSN               notify
AB_SSP_ST_V1             readingsProxy
AB_SSP_ST_V1D            dummy
AB_SSP_ST_V1DN           notify
Aktueller_Verbrauch      readingsGroup
DL2                      HTTPMOD
DL2_CS10                 readingsProxy
DL2_R1                   readingsProxy
DL2_R2                   readingsProxy
DL2_R3                   readingsProxy
DL2_R4                   readingsProxy
DL2_R5                   readingsProxy
DL2_R6                   readingsProxy
DL2_R7                   readingsProxy
DL2_R8                   readingsProxy
DL2_R9                   readingsProxy
DL2_SZ                   readingsProxy
DL2_T01                  readingsProxy
DL2_T02                  readingsProxy
DL2_T03                  readingsProxy
DL2_T04                  readingsProxy
DL2_T05                  readingsProxy
DL2_T06                  readingsProxy
DL2_T07                  readingsProxy
DL2_T08                  readingsProxy
DL2_T09                  readingsProxy
DL2_T10                  readingsProxy
DL2_T11                  readingsProxy
DL2_T12                  readingsProxy
DL2_WMZ1IP               readingsProxy
DL2_WMZ1RT               readingsProxy
DL2_WMZ1VS               readingsProxy
DL2_WMZ1VT               readingsProxy
DL2_WMZ1W                readingsProxy
DL2_WMZ2IP               readingsProxy
DL2_WMZ2RT               readingsProxy
DL2_WMZ2VS               readingsProxy
DL2_WMZ2VT               readingsProxy
DL2_WMZ2W                readingsProxy
EnergieAB                JSONMETER
EnergieEG                JSONMETER
EnergieOG1               JSONMETER
EnergieOG2               JSONMETER
EnergiePV                JSONMETER
F2F_Rasp01               FHEM2FHEM
FileLog_DL2              FileLog
FileLog_DL2_T04k         FileLog
FileLog_EnergieAB        FileLog
FileLog_EnergieEG        FileLog
FileLog_EnergieOG1       FileLog
FileLog_EnergieOG2       FileLog
FileLog_EnergiePV        FileLog
FileLog_EnergieSV        FileLog
FileLog_sysmon           FileLog
HTZ_SDM630M_1            ModbusSDM630M
INT                      RPI_GPIO
Logfile                  FileLog
MBA                      ModbusAttr
ModbusRS485              Modbus
NTFY_BackupRun           at
OG2_HZR_HZG_PSSP         readingsProxy
OG2_HZR_HZG_PSSPD        dummy
OG2_HZR_HZG_PSSPN        notify
OG2_HZR_H_HS             readingsProxy
OG2_HZR_H_HSD            dummy
OG2_HZR_H_HSN            notify
OG2_HZR_NS_APC           readingsProxy
OG2_HZR_NS_APCUEW        readingsProxy
OG2_HZR_P_APS            readingsProxy
OG2_HZR_P_APSD           dummy
OG2_HZR_P_APSN           notify
OG2_HZR_STSP_HTE         readingsProxy
OG2_HZR_STSP_HTI         readingsProxy
OG2_HZR_ST_DT07T08D      dummy
OG2_HZR_ST_DT12T08D      dummy
OG2_HZR_ST_HVPA3         readingsProxy
OG2_HZR_ST_HVPA3.PID     PID20
OG2_HZR_ST_HVPA3.PID.File     FileLog
OG2_HZR_ST_HVPA3.PID.PWMST     DOIF
OG2_HZR_ST_HVPA3.PID.PWMST.File     FileLog
OG2_HZR_ST_HVPA3.PIDD     dummy
OG2_HZR_ST_HVPFA3.PIDST     DOIF
OG2_HZR_ST_HVPFA3D       dummy
OG2_HZR_ST_HVVV3         readingsProxy
OG2_HZR_ST_HVVV3D        dummy
OG2_HZR_ST_HVVV3N        notify
OG2_HZR_ST_KVPA5         readingsProxy
OG2_HZR_ST_KVPA5.PID     PID20
OG2_HZR_ST_KVPA5.PID.File     FileLog
OG2_HZR_ST_KVPA5.PID.PWMST     DOIF
OG2_HZR_ST_KVPA5.PID.PWMST.File     FileLog
OG2_HZR_ST_KVPA5.PIDD     dummy
OG2_HZR_ST_KVPFA5.PIDST     DOIF
OG2_HZR_ST_KVPFA5D       dummy
OG2_HZR_ST_PSSSPPA1      readingsProxy
OG2_HZR_ST_WWZPA4        readingsProxy
OG2_HZR_ST_WWZPA4D       dummy
OG2_HZR_ST_WWZPA4N       notify
PVA1                     FileLog
PVA1_M                   FileLog
PVA1_Y                   FileLog
RpiI2C_1                 RPII2C
SUSV                     I2C_SUSV
SVG_AB_P_ST_PPPA2.PID.File     SVG
SVG_DL2Solar01           SVG
SVG_DL2Solar02           SVG
SVG_DL2Solar03           SVG
SVG_DL2Solar04           SVG
SVG_EnergieAB            SVG
SVG_EnergieEG            SVG
SVG_EnergieOG1           SVG
SVG_EnergieOG2           SVG
SVG_EnergiePV            SVG
SVG_EnergieSV            SVG
SVG_OG2_HZR_ST_HVPA3.PID.File     SVG
SVG_OG2_HZR_ST_KVPA5.PID.File     SVG
SVG_PVA1                 SVG
SVG_PVA1_M               SVG
SVG_PVA1_Y               SVG
SolarThermie             FLOORPLAN
SysValues                weblink
WEB                      FHEMWEB
WEB_192.168.17.46_1796     FHEMWEB
WEBphone                 FHEMWEB
WEBtablet                FHEMWEB
allowed_WEB              allowed
allowed_WEBphone         allowed
allowed_WEBtablet        allowed
allowed_telnetPort       allowed
autocreate               autocreate
eventTypes               eventTypes
global                   Global
initNotify               notify
lp                       logProxy
mcp23017_B1_HZR          I2C_MCP23017
mcp23017_B1_HZR_A4       readingsProxy
mcp23017_B1_HZR_A5       readingsProxy
mcp23017_B1_HZR_A6       readingsProxy
mcp23017_B1_HZR_A7       readingsProxy
mcp23017_B1_HZR_B0       readingsProxy
mcp23017_B1_HZR_B1       readingsProxy
mcp23017_B1_HZR_B2       readingsProxy
mcp23017_B1_HZR_B3       readingsProxy
mcp23017_B1_HZR_B4       readingsProxy
mcp23017_B1_HZR_B5       readingsProxy
mcp23017_B2_HZR          I2C_MCP23017
mcp23017_B2_HZR_A3       readingsProxy
mcp23017_B2_HZR_B0       readingsProxy
mcp23017_B2_HZR_B6       readingsProxy
resolpump                readingsGroup
resoltemp                readingsGroup
resolwmz1                readingsGroup
resolwmz2                readingsGroup
sysmon                   SYSMON
telnetForBlockingFn_1519040969     telnet
telnetPort               telnet
telnetPort_192.168.17.131_33776     telnet
telnetPort_192.168.17.181_55136     telnet
wl_sysmon_cpustat        SVG
wl_sysmon_cpustatT       SVG
wl_sysmon_cpustat_s      SVG
wl_sysmon_eth0           SVG
wl_sysmon_fs_root        SVG
wl_sysmon_fs_usb1        SVG
wl_sysmon_load           SVG
wl_sysmon_power_ac       SVG
wl_sysmon_power_bat      SVG
wl_sysmon_ram            SVG
wl_sysmon_temp           SVG
wl_sysmon_wlan0          SVG


{ `ps -elf | grep fhem` }
1 S fhem      1300     1  1  80   0 - 39140 -      Feb19 ?        00:18:45 perl fhem.pl fhem.cfg
0 S fhem     12281  1300  0  80   0 -   475 wait   10:30 ?        00:00:00 sh -c ps -elf | grep fhem
0 R fhem     12282 12281  0  80   0 -  1934 -      10:30 ?        00:00:00 ps -elf
0 S fhem     12283 12281  0  80   0 -  1093 pipe_w 10:30 ?        00:00:00 grep fhem


{ `ps aux | grep fhem` }
fhem      1300  1.4 16.0 156560 152076 ?       S    Feb19  18:45 perl fhem.pl fhem.cfg
fhem     12286  0.0  0.0   1900   372 ?        S    10:30   0:00 sh -c ps aux | grep fhem
fhem     12287  0.0  0.3   7736  2876 ?        R    10:30   0:00 ps aux
fhem     12288  0.0  0.0   4372   576 ?        S    10:30   0:00 grep fhem


BlockingInfo
No BlockingCall processes running currently

fhemdebug memusage

1. defs                             633595
   2. modules                          340429
   3. attr                             187986
   4. FW_RET                           186850
   5. modules::eventTypes               79293
   6. modules::eventTypes::ldata        78231
   7. modules::ModbusSDM630M            61866
   8. modules::ModbusSDM630M::parseInfo    55649
   9. defs::HTZ_SDM630M_1               52656
  10. defs::sysmon                      48593
  11. defs::DL2                         43639
  12. defs::HTZ_SDM630M_1::READINGS     42461
  13. POSIX::                           37247
  14. defs::sysmon::READINGS            32206
  15. defs::DL2::READINGS               21520
  16. defs::AB_P_ST_PPPA2.PID.PWMST     17257
  17. defs::OG2_HZR_ST_HVPA3.PID.PWMST    16578
  18. defs::OG2_HZR_ST_KVPA5.PID.PWMST    16578
  19. Socket::                          15972
  20. defs::sysmon::helper              15254
  21. attr::DL2                         13340
  22. defs::sysmon::helper::cur_readings_map    13070
  23. defs::DL2::defptr                 12288
  24. defs::OG2_HZR_ST_KVPA5.PID        10454
  25. defs::OG2_HZR_ST_HVPA3.PID        10411
  26. defs::AB_P_ST_PPPA2.PID           10397
  27. oldvalue                          10254
  28. modules::eventTypes::ldata::HTZ_SDM630M_1     9373
  29. defs::mcp23017_B1_HZR              8549
  30. INC                                8478
  31. Fcntl::                            8426
  32. defs::mcp23017_B2_HZR              8418
  33. defs::AB_P_ST_PPPFA2.PIDST         8268
  34. Errno::                            7893
  35. defs::SUSV                         7441
  36. defs::mcp23017_B1_HZR::READINGS     7432
  37. defs::mcp23017_B2_HZR::READINGS     7301
  38. defs::HTZ_SDM630M_1::lastRead      6303
  39. defs::OG2_HZR_ST_KVPFA5.PIDST      6188
  40. defs::OG2_HZR_ST_HVPFA3.PIDST      6188
  41. defs::Aktueller_Verbrauch          5439
  42. defs::INT                          4679
  43. defs::SUSV::READINGS               4583
  44. modules::ModbusAttr                4429
  45. defs::resoltemp                    4399
  46. defs::ModbusRS485                  4331
  47. defs::OG2_HZR_ST_KVPA5.PID::READINGS     4234
  48. defs::OG2_HZR_ST_HVPA3.PID::READINGS     4221
  49. defs::AB_P_ST_PPPA2.PID::READINGS     4216
  50. modules::eventTypes::ldata::OG2_HZR_ST_KVPA5.PID.PWMST     4187


Vielleicht ist aus diesem Verlauf etwas erkennbar.
Wenn wieder Cannot fork: Cannot allocate memory auftaucht werde ich nochmals einen Vergleich zu diesen Angaben liefern.
Mfg Chris

Raspberry Pi 2/2+/3/3+/4 / Betriebssystem: Bullseye Lite
Schnittstellen: RFXtrx433E, SIGNALduino, MQTT, nanoCUL, HM-MOD-UART, 1-Wire, LAN, ser2net, FHEM2FEHEM
Devices: S.USV, APC-USV, Fronius Datalogger Web 2, FS20, IT, Resol VBUS & DL2, TEK603, WMR200, YouLess, Homematic, MQTT

nils_

ich hab mir die beiden werte aus memusage mal geschnappt und die änderungen zum vortag ausgerechnet (vielleicht hilft es ja bei der fehlersuche....)

1. defs                                                    5227
 2. modules                                                  131
 3. attr                                                      -1
 4. FW_RET                                                     0
 5. modules::eventTypes                                       67
 6. modules::eventTypes::ldata                                67
 7. modules::ModbusSDM630M                                     0
 8. modules::ModbusSDM630M::parseInfo                          0
 9. defs::HTZ_SDM630M_1                                      480
10. defs::sysmon                                              45
11. defs::DL2                                                -37
12. defs::HTZ_SDM630M_1::READINGS                            480
13. POSIX::                                                    0
14. defs::sysmon::READINGS                                    45
15. defs::DL2::READINGS                                       36
16. defs::AB_P_ST_PPPA2.PID.PWMST                           1054
17. defs::OG2_HZR_ST_HVPA3.PID.PWMST                           0
18. defs::OG2_HZR_ST_KVPA5.PID.PWMST                           0
19. Socket::                                                   0
20. defs::sysmon::helper                                       0
21. attr::DL2                                                  0
22. defs::sysmon::helper::cur_readings_map                     0
23. defs::DL2::defptr                                          0
24. defs::OG2_HZR_ST_KVPA5.PID                                34
25. defs::OG2_HZR_ST_HVPA3.PID                               118
26. defs::AB_P_ST_PPPA2.PID                                    0
27. oldvalue                                                 135
28. modules::eventTypes::ldata::HTZ_SDM630M_1                  0
29. defs::mcp23017_B1_HZR                                    106
30. INC                                                      142
31. Fcntl::                                                    0
32. defs::mcp23017_B2_HZR                                    175
33. defs::AB_P_ST_PPPFA2.PIDST                              1902
34. Errno::                                                    0
35. defs::SUSV                                               133
36. defs::mcp23017_B1_HZR::READINGS                          101
37. defs::mcp23017_B2_HZR::READINGS                          178
38. defs::HTZ_SDM630M_1::lastRead                              0
39. defs::OG2_HZR_ST_KVPFA5.PIDST                              0
40. defs::OG2_HZR_ST_HVPFA3.PIDST                              0
41. defs::Aktueller_Verbrauch                                 70
42. defs::INT                                                209
43. defs::SUSV::READINGS                                      54
44. modules::ModbusAttr                                        0
45. defs::resoltemp                                            0
46. defs::ModbusRS485                                          0
47. defs::OG2_HZR_ST_KVPA5.PID::READINGS                      14
48. defs::OG2_HZR_ST_HVPA3.PID::READINGS                      18
49. defs::AB_P_ST_PPPA2.PID::READINGS                          0
50. modules::eventTypes::ldata::OG2_HZR_ST_KVPA5.PID.PWMST     0

viele Wege in FHEM es gibt!

rudolfkoenig

Ich fuerchte memusage wird in diesem Fall nicht helfen: die Unterschiede sind minimal, jedenfalls erklaeren sie nicht den laut ps vervierfachung des Speicherverbrauchs. Auch der Hinweis, dass das Problem OS-abhaengig ist, unterstuetzt die Theorie, dass das Problem nicht auf der FHEM-Modulprogrammierungs-Ebene, sondern tiefer, perl oder libc passiert. Die Liste der Geraete ist unauffaellig, auch wenn ich nicht alle Module persoenlich kenne.

nils_

Zitat von: rudolfkoenig am 20 Februar 2018, 23:07:57
Ich fuerchte memusage wird in diesem Fall nicht helfen: die Unterschiede sind minimal, jedenfalls erklaeren sie nicht den laut ps vervierfachung des Speicherverbrauchs. Auch der Hinweis, dass das Problem OS-abhaengig ist, unterstuetzt die Theorie, dass das Problem nicht auf der FHEM-Modulprogrammierungs-Ebene, sondern tiefer, perl oder libc passiert. Die Liste der Geraete ist unauffaellig, auch wenn ich nicht alle Module persoenlich kenne.

ja sowas hatte ich aus deinen letzten aussagen schon vermutet.  :(
viele Wege in FHEM es gibt!

Wernieman

Das Problem ist nur, das es sehr viel sein könnte. Mann wird also um ein "einkreisen", d.h. verringern der Module und damit er Möglichkeiten, nicht drum rum kommen ...

Ich glaube nicht, das es an "Debian Strech" liegt, sondern an irgendeinem Versionskonflikt ..... sonst währe der Aufschrei in der Community größer ...
- Bitte um Input für Output
- When there is a Shell, there is a Way
- Wann war Dein letztes Backup?

Wie man Fragen stellt: https://tty1.net/smart-questions_de.html

Burny4600

Gibt es in der Zwischenzeit neu Erkenntnisse zu dem Thema?
Mfg Chris

Raspberry Pi 2/2+/3/3+/4 / Betriebssystem: Bullseye Lite
Schnittstellen: RFXtrx433E, SIGNALduino, MQTT, nanoCUL, HM-MOD-UART, 1-Wire, LAN, ser2net, FHEM2FEHEM
Devices: S.USV, APC-USV, Fronius Datalogger Web 2, FS20, IT, Resol VBUS & DL2, TEK603, WMR200, YouLess, Homematic, MQTT

CoolTux

Müssten nicht die Helfenden das dem Hilfesuchenden fragen?
Hast Du bereits angefangen einzelne Module zu deaktivieren?
Du musst nicht wissen wie es geht! Du musst nur wissen wo es steht, wie es geht.
Support me to buy new test hardware for development: https://www.paypal.com/paypalme/MOldenburg
My FHEM Git: https://git.cooltux.net/FHEM/
Das TuxNet Wiki:
https://www.cooltux.net

Burny4600

Auf dem Testgerät läuft nur FHEM mit den JSONMETER LS110.
Wenn dieser einige Tage läuft und ich ein Update ausführen möchte kommt diese Meldung.

Bei denn Master Raspberry ist mir aufgefallen das die JSONMETER LS110 nach längerem Betrieb plötzlich nicht mehr eingelesen werden.
Wenn dies der Fall ist kommt zu 100% die Cannot fork: Cannot allocate memory Meldung und das System muss neu gestartet werden.
Am zweiten aktiven Raspberry ist das gleiche nur zu einem viel späteren Zeitpunkt.
Auffällig ist das Beide und das Testgerät das aktuelle Jessie Stretch Lite Betriebssystem haben und ein anderer Raspberry der kein Stretch Lite hat ohne Probleme mit dem JSONMETER LS110 noch nie mit dieser Fehlermeldung ausgefallen ist.
Mfg Chris

Raspberry Pi 2/2+/3/3+/4 / Betriebssystem: Bullseye Lite
Schnittstellen: RFXtrx433E, SIGNALduino, MQTT, nanoCUL, HM-MOD-UART, 1-Wire, LAN, ser2net, FHEM2FEHEM
Devices: S.USV, APC-USV, Fronius Datalogger Web 2, FS20, IT, Resol VBUS & DL2, TEK603, WMR200, YouLess, Homematic, MQTT

CoolTux

Sehr schön, das war jetzt das Stammtischgespräch. Nun aber Mal bitte was handfestes. Lese Dir bitte noch mal den Thread durch um zu erfassen was wirklich wichtige Daten wären.
Einzig das du auf einer FHEM Instanz nur ein Device aktiv hast war interessant.
Du musst nicht wissen wie es geht! Du musst nur wissen wo es steht, wie es geht.
Support me to buy new test hardware for development: https://www.paypal.com/paypalme/MOldenburg
My FHEM Git: https://git.cooltux.net/FHEM/
Das TuxNet Wiki:
https://www.cooltux.net