nach zwei Jahren OH2 bin ich vor kurzem auf OH4 umgestiegen. (neu Installation).
Soweit so gut. Mosquitto habe ich über die OH-Config installiert. Es werden Daten von 6 ESP‘s (Temperaturen, Gaszähler usw) an den Broker gesendet. Irgendwann (<24h) ist der Broker nicht mehr erreichbar. In der mosquitto.log steht Error: Out of memory. Der Arbeitsspeicher des RPI4 4G ist voll.
Warum ist das so? Was mache ich falsch?
Vielen Dank für Mühe
Speicher
Code: Alles auswählen
openhabian@openhabian:/etc/mosquitto $ top
top - 17:37:46 up 2 days, 16:15, 1 user, load average: 0.59, 0.47, 0.36
Tasks: 130 total, 1 running, 129 sleeping, 0 stopped, 0 zombie
%Cpu(s): 3.9 us, 4.1 sy, 0.0 ni, 91.9 id, 0.0 wa, 0.0 hi, 0.1 si, 0.0 st
MiB Mem : 3844.2 total, 37.6 free, 3689.8 used, 116.8 buff/cache
MiB Swap: 3072.0 total, 2133.5 free, 938.5 used. 84.9 avail Mem
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
2288 mosquit+ 20 0 4002968 3.0g 2256 S 21.5 81.0 176:34.33 mosquitto
794 openhab 20 0 1178160 371960 5604 S 8.6 9.4 163:12.01 java
55 root 20 0 0 0 0 S 1.0 0.0 0:47.55 kswapd0
4902 openhab+ 20 0 11596 2888 2404 R 0.7 0.1 0:02.27 top
353 openhab+ 20 0 184248 18616 10228 S 0.3 0.5 35:44.47 deCONZ
1 root 20 0 33908 6020 4652 S 0.0 0.2 0:06.61 systemd
2 root 20 0 0 0 0 S 0.0 0.0 0:00.44 kthreadd
3 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 rcu_gp
4 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 rcu_par_gp
5 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 slub_flushwq
6 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 netns
10 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 mm_percpu_wq
11 root 20 0 0 0 0 I 0.0 0.0 0:00.00 rcu_tasks_kthread
12 root 20 0 0 0 0 I 0.0 0.0 0:00.00 rcu_tasks_rude_kthread
13 root 20 0 0 0 0 I 0.0 0.0 0:00.00 rcu_tasks_trace_kthread
14 root 20 0 0 0 0 S 0.0 0.0 1:18.66 ksoftirqd/0
15 root 20 0 0 0 0 I 0.0 0.0 1:19.73 rcu_preempt
Code: Alles auswählen
# Place your local configuration in /etc/mosquitto/conf.d/
#
# A full description of the configuration file is at
# /usr/share/doc/mosquitto/examples/mosquitto.conf.example
pid_file /run/mosquitto/mosquitto.pid
persistence true
persistence_location /var/lib/mosquitto/
log_dest file /var/log/mosquitto/mosquitto.log
include_dir /etc/mosquitto/conf.d
listener 1883
password_file /etc/mosquitto/passwd
allow_anonymous false
mosquitto.log
Code: Alles auswählen
1706541594: Client ESP_GAS disconnected due to out of memory.
1706541594: New connection from 192.168.178.85:64390 on port 1883.
1706541594: New client connected from 192.168.178.85:64390 as ESP_GAS (p2, c1, k15, u'openhabian').
1706541594: Client ESP_GAS disconnected due to out of memory.
1706541607: Client ESP8266_Garagentuer disconnected due to out of memory.
1706541608: New connection from 192.168.178.86:55460 on port 1883.
1706541608: New client connected from 192.168.178.86:55460 as ESP8266_Garagentuer (p2, c1, k15, u'openhabian').
1706541608: Error: Out of memory.
1706541608: Client ESP8266_Garagentuer disconnected due to out of memory.
1706542591: Saving in-memory database to /var/lib/mosquitto//mosquitto.db.
1706544392: Saving in-memory database to /var/lib/mosquitto//mosquitto.db.