High CPU usage Nefit Easy Server (RPI3B, 2020.2, Buster)
Posted: Tuesday 16 June 2020 22:11
Hi Forum,
There are some posts related to this topic, but none was conclusive for me. I'm hoping for some guidance to resolve this high CPU load issue.
Normally, my RPI would run below ~2% CPU, but with the NefitEasyHttpServer load increases to 25-30% on average which increases the temperature of the RPI. I used to run Domoticz+Nefit on the same RPI with Stretch and the pre-2020 Domoticz version.
I'm using node v10.21.0, npm v6.14.4, for the nefiteasyhttpserver, I'm not sure about the version (how to check? With "sudo pm2 show nefiteasyhttpserver", the version is indicated as "N/A")
I'm assuming NefitEasyhttpServer is triggering the extra load, since if I disable it using ("sudo pm2 stop nefiteasyhttpserver") I note the CPU load (and the temperature) drop sharply, which is reversed when I enable it again ("sudo pm2 start nefiteasyhttpserver").
Here you can see the effect of starting and stopping the nefiteasyhttpserver; on around 19:30, off bot after 20:00, etc.
Probably, some additional information is required, which I will gladly provide, realizing that I'm quite far from the level many of the experts on this forum!
(I have recently upgraded my RPI from Stretch to Buster following the steps from https://pimylifeup.com/upgrade-raspbian ... an-buster/ in order to keep the current setup and downgraded nodejs from 12.18.10 to v10.21.0 as I seemed to have some problems with installing the nefiteasyhttpserver). At the same moment I also upgraded to Domoticz 2020.2)
There are some posts related to this topic, but none was conclusive for me. I'm hoping for some guidance to resolve this high CPU load issue.
Normally, my RPI would run below ~2% CPU, but with the NefitEasyHttpServer load increases to 25-30% on average which increases the temperature of the RPI. I used to run Domoticz+Nefit on the same RPI with Stretch and the pre-2020 Domoticz version.
I'm using node v10.21.0, npm v6.14.4, for the nefiteasyhttpserver, I'm not sure about the version (how to check? With "sudo pm2 show nefiteasyhttpserver", the version is indicated as "N/A")
I'm assuming NefitEasyhttpServer is triggering the extra load, since if I disable it using ("sudo pm2 stop nefiteasyhttpserver") I note the CPU load (and the temperature) drop sharply, which is reversed when I enable it again ("sudo pm2 start nefiteasyhttpserver").
Here you can see the effect of starting and stopping the nefiteasyhttpserver; on around 19:30, off bot after 20:00, etc.
Probably, some additional information is required, which I will gladly provide, realizing that I'm quite far from the level many of the experts on this forum!
(I have recently upgraded my RPI from Stretch to Buster following the steps from https://pimylifeup.com/upgrade-raspbian ... an-buster/ in order to keep the current setup and downgraded nodejs from 12.18.10 to v10.21.0 as I seemed to have some problems with installing the nefiteasyhttpserver). At the same moment I also upgraded to Domoticz 2020.2)