Thanks.. this is interesting data. You powe cycle because of issues or just as precaution? Can't really say that there is a memory leak from the data can we? I wonder if the free memory will continue to drop or will it reach steady state at some point.
Had several issues. My Zigbee hub was super slow and stopped reporting to my coordinator via hubconnect. Then coordinator had extremely slow UI so I had to restart it. Just interesting to see memory lower over time versus cleanup jobs freeing things up.
Sure please keep in mind that I have 4 hubs that I monitor so everyone's setup will vary. The original flow and idea came from the performance monitor example flows from this community. Those examples use the Apps list to which I found to be an apples to orange comparison because app installs vary greatly on my hubs so I changed it the events list instead. I added the memory query as part of that flow.
Performance Flow Export
[
{
"id": "be6c4746.e18b78",
"type": "tab",
"label": "Hubitat Performance",
"disabled": false,
"info": ""
},
{
"id": "f133f0b5.c28ec",
"type": "inject",
"z": "be6c4746.e18b78",
"name": "5 mins.",
"topic": "",
"payload": "",
"payloadType": "date",
"repeat": "300",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"x": 100,
"y": 100,
"wires": [
[
"410a8657.e073a8",
"323b4ba0.cb5034",
"1cbb30df.f8cdcf",
"7fe40aa3.48e934"
]
]
},
{
"id": "d6557ad5.412968",
"type": "function",
"z": "be6c4746.e18b78",
"name": "Set Influx Data",
"func": "var v = {\n 'value' : Number(msg.responseTime),\n 'isBinary' : false\n};\n\nmsg.payload = [\n {\n measurement: msg.measurement,\n fields: {\n value: v.value,\n },\n tags:{\n hub: msg.hubId,\n deviceId: msg.hubId,\n displayName: msg.displayName,\n unit: msg.unit\n },\n timestamp: new Date()\n }\n]\n\n\nreturn msg;",
"outputs": 1,
"noerr": 0,
"x": 640,
"y": 320,
"wires": [
[
"bccf76fb.50abf8"
]
]
},
{
"id": "bccf76fb.50abf8",
"type": "influxdb batch",
"z": "be6c4746.e18b78",
"influxdb": "f04a7840.96fed8",
"precision": "",
"retentionPolicy": "",
"name": "",
"x": 850,
"y": 320,
"wires": []
},
{
"id": "410a8657.e073a8",
"type": "function",
"z": "be6c4746.e18b78",
"name": "Hub1 Vars",
"func": "var ipAddress = \"ip-address-here\";\nvar hubName = \"hub1-name\";\n\nmsg.displayName = hubName;\nmsg.hubId = hubName.toLowerCase();\nmsg.hubIP = ipAddress;\n\nreturn msg;",
"outputs": 1,
"noerr": 0,
"x": 330,
"y": 40,
"wires": [
[
"fb8e133.36618f",
"cd9627b4.807708"
]
]
},
{
"id": "323b4ba0.cb5034",
"type": "function",
"z": "be6c4746.e18b78",
"name": "Hub2 Vars",
"func": "var ipAddress = \"ip-address-here\";\nvar hubName = \"hub2-name\";\n\nmsg.displayName = hubName;\nmsg.hubId = hubName.toLowerCase();\nmsg.hubIP = ipAddress;\n\nreturn msg;",
"outputs": 1,
"noerr": 0,
"x": 330,
"y": 80,
"wires": [
[
"fb8e133.36618f",
"cd9627b4.807708"
]
]
},
{
"id": "1cbb30df.f8cdcf",
"type": "function",
"z": "be6c4746.e18b78",
"name": "Hub3 Vars",
"func": "var ipAddress = \"ip-address-here\";\nvar hubName = \"hub3-name\";\n\nmsg.displayName = hubName;\nmsg.hubId = hubName.toLowerCase();\nmsg.hubIP = ipAddress;\n\nreturn msg;",
"outputs": 1,
"noerr": 0,
"x": 330,
"y": 120,
"wires": [
[
"fb8e133.36618f",
"cd9627b4.807708"
]
]
},
{
"id": "7fe40aa3.48e934",
"type": "function",
"z": "be6c4746.e18b78",
"name": "Hub4 Vars",
"func": "var ipAddress = \"ip-address-here\";\nvar hubName = \"hub4-name\";\n\nmsg.displayName = hubName;\nmsg.hubId = hubName.toLowerCase();\nmsg.hubIP = ipAddress;\n\nreturn msg;",
"outputs": 1,
"noerr": 0,
"x": 330,
"y": 160,
"wires": [
[
"fb8e133.36618f",
"cd9627b4.807708"
]
]
},
{
"id": "88d59bd7.8c4a98",
"type": "http request",
"z": "be6c4746.e18b78",
"name": "Get Events List",
"method": "GET",
"ret": "bin",
"paytoqs": false,
"url": "",
"tls": "",
"proxy": "",
"authType": "",
"x": 340,
"y": 260,
"wires": [
[
"91b59ccd.77366"
]
]
},
{
"id": "91b59ccd.77366",
"type": "change",
"z": "be6c4746.e18b78",
"name": "Add endtime",
"rules": [
{
"t": "set",
"p": "endtime",
"pt": "msg",
"to": "",
"tot": "date"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 530,
"y": 260,
"wires": [
[
"19898cb1.7d10e3"
]
]
},
{
"id": "d0777d92.5e74b",
"type": "change",
"z": "be6c4746.e18b78",
"name": "Add starttime",
"rules": [
{
"t": "set",
"p": "starttime",
"pt": "msg",
"to": "",
"tot": "date"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 160,
"y": 260,
"wires": [
[
"88d59bd7.8c4a98"
]
]
},
{
"id": "19898cb1.7d10e3",
"type": "function",
"z": "be6c4746.e18b78",
"name": "Do Math",
"func": "msg.responseTime = msg.endtime - msg.starttime;\nmsg.responseTime = msg.responseTime / 1000;\nmsg.metricType = \"performance\";\nreturn msg;",
"outputs": 1,
"noerr": 0,
"x": 680,
"y": 260,
"wires": [
[
"d6557ad5.412968"
]
]
},
{
"id": "9b677ab0.64ab38",
"type": "http request",
"z": "be6c4746.e18b78",
"name": "",
"method": "GET",
"ret": "txt",
"paytoqs": false,
"url": "",
"tls": "",
"persist": false,
"proxy": "",
"authType": "",
"x": 150,
"y": 320,
"wires": [
[
"c4d84120.bac87"
]
]
},
{
"id": "b80ca608.943148",
"type": "link out",
"z": "be6c4746.e18b78",
"name": "Performance",
"links": [
"750786ad.638f88"
],
"x": 735,
"y": 80,
"wires": []
},
{
"id": "750786ad.638f88",
"type": "link in",
"z": "be6c4746.e18b78",
"name": "Performance",
"links": [
"b80ca608.943148"
],
"x": 35,
"y": 260,
"wires": [
[
"d0777d92.5e74b"
]
]
},
{
"id": "8e926c87.a3c3",
"type": "link out",
"z": "be6c4746.e18b78",
"name": "Memory",
"links": [
"1809cbc8.20ae34"
],
"x": 735,
"y": 120,
"wires": []
},
{
"id": "1809cbc8.20ae34",
"type": "link in",
"z": "be6c4746.e18b78",
"name": "Memory",
"links": [
"8e926c87.a3c3"
],
"x": 35,
"y": 320,
"wires": [
[
"9b677ab0.64ab38"
]
]
},
{
"id": "fb8e133.36618f",
"type": "function",
"z": "be6c4746.e18b78",
"name": "Performance URL",
"func": "msg.url = \"http://\" + msg.hubIP + \"/events\";\nmsg.measurement = \"responseTime\";\n\nreturn msg;",
"outputs": 1,
"noerr": 0,
"x": 610,
"y": 80,
"wires": [
[
"b80ca608.943148"
]
]
},
{
"id": "cd9627b4.807708",
"type": "function",
"z": "be6c4746.e18b78",
"name": "Memory URL",
"func": "msg.url = \"http://\" + msg.hubIP + \"/hub/advanced/freeOSMemory\"\nmsg.measurement = \"memory\";\nreturn msg;",
"outputs": 1,
"noerr": 0,
"x": 590,
"y": 120,
"wires": [
[
"8e926c87.a3c3"
]
]
},
{
"id": "c4d84120.bac87",
"type": "function",
"z": "be6c4746.e18b78",
"name": "Capture Memory",
"func": "msg.responseTime = msg.payload;\nmsg.metricType = \"memory\";\nreturn msg;",
"outputs": 1,
"noerr": 0,
"x": 350,
"y": 320,
"wires": [
[
"d6557ad5.412968"
]
]
},
{
"id": "f04a7840.96fed8",
"type": "influxdb",
"z": "",
"hostname": "192.168.1.5",
"port": "8086",
"protocol": "http",
"database": "hubitat",
"name": "InfluxDB - hubitat",
"usetls": false,
"tls": ""
}
]
Hope so. In any case my hub has been running fine since the rollback.
C4 squad, has anyone updated to 2.24 yet?
I did yesterday and am seeing the same slowness of the web interface as 2.2.3
It's sporadic where at times the interface is snappy, and other times it takes several seconds just to load a page
Performed a DB cleanup with a fresh reboot so we'll see if that helps any
I updated as well, it is still a tiny bit slower than on 2.2.2 but def a huge improvement on 2.2.3. In any case I'm keeping if as will be using it to migrate to my shiny new C7.
How do you do this?
With 2.2.4, the least intrusive way is to do a backup followed by an immediate restore.
It's not quite soft reset, but very close.
It's started to slow down again (was working ok'ish 6 hours ago) . Obviously somethings up.
Same here. Seemed fine for a while but slowness creeped up at some point. Havenβt rebooted in a few days, probably why.
Just did that, still slow until I rebooted the hub. I see there are other reports of slowdowns popping up.
I feel like an Apple user, when some updated IOS version completely wipes out performance
on an old device while the new one just hums along nicely.
Noted - will take a look.
Update: there will be a hotfix for this. It may take a couple of iterations, but we're not leaving people hanging out to dry.
Looks like 2.2.4.147 includes:
- Hub core: revised memory settings for C4 hubs.
Sounds like this is our fix, @gopher.ny ?
Applied the update a couple of hours ago - let's see what happens overnight.
does 2.2.4.147 include any zigbee fixes for the C7? Just tried several times to pair an Iris 3210-L plug, would not pair. Tried once on my C4(2.2.0.126) hub and the plug joined right away.
So far, so good... 
