Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Troubleshooting with PySpy
#1
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.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  OBS Script Troubleshooting Jotatochips 0 303 Feb-10-2024, 06:18 PM
Last Post: Jotatochips
  Troubleshooting site packages ('h5py' to be specific) aukhare 2 2,006 Nov-02-2020, 03:04 PM
Last Post: snippsat
  Troubleshooting simple script and printing class objects Drone4four 11 8,190 Dec-16-2017, 05:12 AM
Last Post: Drone4four

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020