Jul-24-2022, 03:22 PM
(This post was last modified: Jul-24-2022, 03:22 PM by Positron79.)
Hello all,
I'm running a script that grabs data from a weather device, and converts it to mqtt and dumps it to my broker where I can then use the data. Its running my my RPi 4B as a service. For the most part, it runs very well, but everyonce in a while, I come back to my RPi and I notice that there is a stuck CPU (at 100%, 1 of 4) and attributed to this script that I'm running (htop says its this script that is stuck at 100%). Restarting the service, fixes the problem, but comes back eventually.
I was able to use PySpy and record the problem. When I terminated PySpy it generated the profile.svg file and it said out of 4,000,000 events it caught 700 errors.
Problem is, I have no idea how to use the profile.svg flame plot, to see what the problem actually is!
Any ideas? I'd be happy to share the profile.svg file if somone wants to see it.
I'm running a script that grabs data from a weather device, and converts it to mqtt and dumps it to my broker where I can then use the data. Its running my my RPi 4B as a service. For the most part, it runs very well, but everyonce in a while, I come back to my RPi and I notice that there is a stuck CPU (at 100%, 1 of 4) and attributed to this script that I'm running (htop says its this script that is stuck at 100%). Restarting the service, fixes the problem, but comes back eventually.
I was able to use PySpy and record the problem. When I terminated PySpy it generated the profile.svg file and it said out of 4,000,000 events it caught 700 errors.
Problem is, I have no idea how to use the profile.svg flame plot, to see what the problem actually is!
Any ideas? I'd be happy to share the profile.svg file if somone wants to see it.