Hi @Trying_to_learn
Just sticking my uneducated nose in here - I had a slow "memory leak" that I eventually tracked down to ?tcp sockets? being left open .... (sorry, not the best at remembering the right terms)
I ultimately found the problem(with a hell of a lot of help from pretty much everybody who has answered you here) ... One of the "tools" I used was this:
[
{
"id": "f16c8c4d.9d7c5",
"type": "inject",
"z": "3055fb7f.f62864",
"name": "Tickler 10sec",
"props": [
{
"p": "payload"
},
{
"p": "topic",
"vt": "str"
}
],
"repeat": "10",
"crontab": "",
"once": true,
"onceDelay": "",
"topic": "",
"payload": "",
"payloadType": "date",
"x": 110,
"y": 310,
"wires": [
[
"c602dc4f.4d9978",
"cf97546.7fa3028",
"d33f08eb.80118",
"d14e39e5.54206",
"98bb25d9.a33d38"
]
]
},
{
"id": "d14e39e5.54206",
"type": "exec",
"z": "3055fb7f.f62864",
"command": "cat /proc/net/sockstat | grep sockets | awk '{print ($3)*1}'",
"addpay": false,
"append": "",
"useSpawn": "",
"timer": "",
"name": "TCP Sockets Used",
"x": 320,
"y": 250,
"wires": [
[
"11fab008.76c098"
],
[],
[]
]
},
{
"id": "11fab008.76c098",
"type": "string",
"z": "3055fb7f.f62864",
"name": "",
"methods": [
{
"name": "toInteger",
"params": []
}
],
"prop": "payload",
"propout": "payload",
"object": "msg",
"objectout": "msg",
"x": 480,
"y": 250,
"wires": [
[
"e16f3731.ee6b8"
]
]
},
{
"id": "e16f3731.ee6b8",
"type": "smooth",
"z": "3055fb7f.f62864",
"name": "",
"property": "payload",
"action": "mean",
"count": "10",
"round": "0",
"mult": "single",
"reduce": false,
"x": 600,
"y": 280,
"wires": [
[
"a309e776.043b88",
"6100f9b9.75055",
"c140aa12.b358b"
]
]
},
{
"id": "c140aa12.b358b",
"type": "debug",
"z": "3055fb7f.f62864",
"name": "",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "false",
"statusVal": "",
"statusType": "auto",
"x": 770,
"y": 310,
"wires": []
}
]
The output of this can be filed away in influx etc and you can see if the number of sockets used increases over time, ultimately leading to a lockup/reboot situation....
Forgive me if I am sending you on a wild goose chase, not my intention...
Regds
Ed