Page 3 of 4

Re: Indigo 7 client memory usage

PostPosted: Mon Dec 10, 2018 5:06 pm
by jay (support)
gt3mike wrote:
Definitely will do.

If you have a little snippet of shell script (or anything else) that would capture the runtime info you're looking for, please do share. I can certainly come up with something myself given a little time, but time is something I don't have a lot of right now. If you have something useful it would save me time and get you data sooner.


This is why I say "roughly". Give us the rest of the data even if you don't have specifics because we can use the rest of the data immediately.

Re: Indigo 7 client memory usage

PostPosted: Mon Dec 10, 2018 5:07 pm
by jay (support)
lanbrown wrote:
this might be a nice addition to Indigo when someone has an issue that Indigo (and from the client) tell the server to create a tech support file and upload it. It could grab the client info as well that it ran on. This would help you and Matt when people have issues.


Yeah, though honestly it's not often that we need this much information. But point taken.

Re: Indigo 7 client memory usage

PostPosted: Mon Dec 10, 2018 5:26 pm
by gt3mike
macOS Version - 10.13.6

Indigo Version - 7.2.0

Local or remote client connection - Has happened with both local and remote client sessions

Number of scripts updating variables and approximately how many updates per minute - Not sure how to answer this. I have three variables. One variable is maintained by four schedules, only two of which are active at any time, and each only executes once a day. The other two variables are updated by triggers that fire when my alarm system is disarmed and armed.

List of all enabled plugins (both built-in and 3rd party) - AD2USB, Alexa Hue Bridge, Harmony Hub, Lutron RR2/Caseta, Nest Home, Pushover, SenseME, Sonos

Interfaces enabled - Z-Wave and Virtual Devices.
I have four Z-Wave devices: A water/temp sensor, a relay, and two appliance power switches (ZEN15). The power switches can be really chatty with power stats. I've tried to configure them to reduce their chattiness but I haven't been completely successful. These are the most recent addition to the system, so potentially they could be the problem. I use them to monitor the washer and dryer. I'll pay more attention to whether this only happens when they are active.

Rough estimate of how much it's gone up over whatever period of time you know about (basically just to let us know a rough scale - so just a length of time and usage at start and end is fine) - Sometimes it happens over an hour or two, sometimes over a day or two. I need to track it.

Re: Indigo 7 client memory usage

PostPosted: Fri Dec 14, 2018 2:44 pm
by gt3mike
The client has been running on my Indigo Server Mac for a couple of days now. It hasn't crashed yet, but I do see some spikes in memory usage. I'm capturing memory using top.

I don't see anything unusual in the server log window to account for the jumps in memory. The first jump occurred right around when a trigger fired based on a RR2 keypad button press. It send a RR2 command back to the repeater, delays 8 seconds, then sends it again. This trigger has been part of the system for the better part of a year. When I noticed the jump, I triggered the action a couple more times and nothing unusual happened.

Also, the washer and dryer were used a bit day one, but the power usage messages didn't seem to trigger any jumps in memory consumption.

Is this helpful?

Mike

indigo memory usage.png
indigo memory usage.png (33.07 KiB) Viewed 4812 times

Re: Indigo 7 client memory usage

PostPosted: Sat Dec 15, 2018 12:40 pm
by gt3mike
I kept it running, connected again this morning via screen sharing, and this is what I found:

indigo memory usage.png
indigo memory usage.png (34.21 KiB) Viewed 4784 times


Although I thought the client was hung when I connected, (spinning cursor and log window had stopped updating as of last night), I didn't kill it and after a couple of minutes it "caught up" and I could interact with it again.

So, is the Indigo Client just operating as designed here, not bothering to update the UI while the display is off, and then taking several minutes to catch up when I log back in? The server seems to be working just fine and the client memory usage has dropped back to around 400MB from around 1.5GB now that it has "caught up".

Re: Indigo 7 client memory usage

PostPosted: Sun Dec 16, 2018 2:35 pm
by matt (support)
gt3mike wrote:
So, is the Indigo Client just operating as designed here, not bothering to update the UI while the display is off, and then taking several minutes to catch up when I log back in? The server seems to be working just fine and the client memory usage has dropped back to around 400MB from around 1.5GB now that it has "caught up".

The UI should be updating as long as the Mac is awake and Indigo Client is running, so there shouldn't be any lag/hanging when the display is awoken.

Was it just the display that was asleep (and not the Mac itself)?
And is this Indigo Client running on the same Mac as the Indigo Server?

Any idea what happened/started around 15:00 time mark on the graph where the usage grows linearly until it hits ~1.5G?

Re: Indigo 7 client memory usage

PostPosted: Sun Dec 16, 2018 2:38 pm
by gt3mike
matt (support) wrote:
The UI should be updating as long as the Mac is awake and Indigo Client is running, so there shouldn't be any lag/hanging when the display is awoken.

Was it just the display that was asleep (and not the Mac itself)?
And is this Indigo Client running on the same Mac as the Indigo Server?

Any idea what happened/started around 15:00 time mark on the graph where the usage grows linearly until it hits ~1.5G?

I’ll look at the logs to see what happened at 3. Client running on same machine as server. Mac was not sleeping.

Re: Indigo 7 client memory usage

PostPosted: Sun Dec 16, 2018 5:47 pm
by gt3mike
matt (support) wrote:
Any idea what happened/started around 15:00 time mark on the graph where the usage grows linearly until it hits ~1.5G


The linear increase looks like it began at 17:06.

Code: Select all
12/14/18 17:00   72
12/14/18 17:01   72
12/14/18 17:02   72
12/14/18 17:03   72
12/14/18 17:04   72
12/14/18 17:06   72
12/14/18 17:07   75
12/14/18 17:08   81
12/14/18 17:09   82
12/14/18 17:10   85
12/14/18 17:11   87
12/14/18 17:12   88
12/14/18 17:13   90
12/14/18 17:14   91
12/14/18 17:15   93

There's nothing in the Indigo log that would explain it.

Code: Select all
Dec 14, 2018 at 5:00:00 PM
   Schedule                        Peak Non-Summer True
   Trigger                         Peak Hours Humidifier Off
   Z-Wave                          sent "Aprilaire Humidifier" off

Dec 14, 2018 at 5:01:12 PM
   Action Group                    House Fan On
   Alexa-Hue Bridge                Request received from 192.168.0.37:55173: Setting on state of Alexa device "House Fan" to ON

Dec 14, 2018 at 5:12:12 PM
   Trigger                         Guest Bath On


I'll look through the system log and let you know if I see anything there. UPDATE: Nothing useful in the system log.

Re: Indigo 7 client memory usage

PostPosted: Tue Jan 01, 2019 9:47 am
by petematheson
I just had to force quit my Indigo Apps after my little one managed to press our panic alarm, yay.

Interestingly I seem to have multiple indigo plugin host processes running, is this expected - one per plugin or something perhaps?

Re: Indigo 7 client memory usage

PostPosted: Tue Jan 01, 2019 10:00 am
by FlyingDiver
petematheson wrote:
I just had to force quit my Indigo Apps after my little one managed to press our panic alarm, yay.

Interestingly I seem to have multiple indigo plugin host processes running, is this expected - one per plugin or something perhaps?


Yes, one per plugin or background script. Plus the web server and maybe some others.

Re: Indigo 7 client memory usage

PostPosted: Tue Jan 01, 2019 8:36 pm
by gt3mike
It sure would be great to get this figured out.

1.png
1.png (74.33 KiB) Viewed 4608 times

Re: Indigo 7 client memory usage

PostPosted: Tue Jan 01, 2019 9:34 pm
by jay (support)
We're working on it. Fortunately there's an easy workaround... :)

Re: Indigo 7 client memory usage

PostPosted: Tue Jan 01, 2019 9:40 pm
by gt3mike
Cool. Let me know if I can help test anything.

Re: Indigo 7 client memory usage

PostPosted: Thu Apr 18, 2019 4:51 pm
by gt3mike
Did you guys manage to do anything about this in 7.3?

Re: Indigo 7 client memory usage

PostPosted: Fri Apr 19, 2019 8:57 am
by jay (support)
Possibly - there were some changes that may alleviate the issue (it's hard to pin down the exact cause). Let us know if you continue to see it.