V4.1.2: steadily increasing cpu load

Discussions about Z-Way software and Z-Wave technology in general
User avatar
PoltoS
Posts: 7644
Joined: 26 Jan 2011 19:36

Re: V4.1.2: steadily increasing cpu load

Post by PoltoS »

I doubt that... But who knows - new libs might fix it
alky
Posts: 11
Joined: 05 Mar 2019 23:18

Re: V4.1.2: steadily increasing cpu load

Post by alky »

Well, hello there.

I had exactly the same problem, hopefully had... I have known about this thread for a while, but I didn't have time to deal with it much. I was restarting Z-Way or the whole RP, that was my solution :) but to the point.

This started happening after upgrading from 3.2.3 to 4.0.0. Now I have the latest official version. When HTTP was mentioned here, it occurred to me to turn off the application (InfluxDb Statistics Collector) that uses it, and the CPU consumption suddenly did not increase. It sends a lot of data to the InfluxDB database, approximately 2000 per hour:

Code: Select all

Nov 09 09:02:01 RP5 influxd[864]: [httpd] 127.0.0.1 - - [09/Nov/2024:09:02:01 +0100] "POST /write?db=zwaydb HTTP/1.1" 204 0 "-" "XMLHttpRequest" e6a42b26-9e70-11ef-8ea4-000000000000 4246
Nov 09 09:02:02 RP5 influxd[864]: [httpd] 127.0.0.1 - - [09/Nov/2024:09:02:02 +0100] "POST /write?db=zwaydb HTTP/1.1" 204 0 "-" "XMLHttpRequest" e70b096e-9e70-11ef-8ea5-000000000000 4224
Nov 09 09:02:02 RP5 influxd[864]: [httpd] 127.0.0.1 - - [09/Nov/2024:09:02:02 +0100] "POST /write?db=zwaydb HTTP/1.1" 204 0 "-" "XMLHttpRequest" e7549ce6-9e70-11ef-8ea6-000000000000 4366
I tried using modhttp.so from version 3.2.3 as already mentioned, and it seems the problem is solved. So far, the CPU load is not increasing. Please fix the modhttp.so file.
User avatar
PoltoS
Posts: 7644
Joined: 26 Jan 2011 19:36

Re: V4.1.2: steadily increasing cpu load

Post by PoltoS »

The code of modhttp.so has not changed from v3.2.3 to v4.0.0 (in v4.1.0 HTTP PATCH method added only). So I doubt that the issue is here... Just changinf modhttp.so from v4.1.4 to v3.2.3 solves your issue? Could you please check with v4.0.2 and v4.0.3 (in the latter one more lock was added in callback release function - this could be the only place to make issue)
alky
Posts: 11
Joined: 05 Mar 2019 23:18

Re: V4.1.2: steadily increasing cpu load

Post by alky »

Alright, I'll admit that I didn't know exactly which version the issue started with. I was certain it was from 4.x.x. I tested what you requested and can confirm that the issue starts from version 4.0.3. Version 4.0.2 is fine, without increasing CPU load.
User avatar
PoltoS
Posts: 7644
Joined: 26 Jan 2011 19:36

Re: V4.1.2: steadily increasing cpu load

Post by PoltoS »

Thanks for checking it! So, no we know what added this issue. We will create an internal ticket for this issue. Hope we can reproduce it
Post Reply