You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I run pytes_serial.py one of the RPI cores is constantly at 100%. It's configured for mysql and mqtt, and I have configured for one or other with no change to cpu usage. The refresh period is set to 600 seconds so it's not like I am trying to hammer the stats.
I ran py-spy to monitor the running python code with the results below.
Many thanks.
The text was updated successfully, but these errors were encountered:
while true loop is used in the code and the behaviour is normal and will not affect the overall performance. while loop will use 100% of available idle CPU resources, and will only begin to use less when other CPU intensive processes are started up. anyhow i will try to fix this to do not be reported as 100% .
chinezbrun
changed the title
100% CPU when running
reported 100% CPU when running
Apr 10, 2024
Hi there,
When I run pytes_serial.py one of the RPI cores is constantly at 100%. It's configured for mysql and mqtt, and I have configured for one or other with no change to cpu usage. The refresh period is set to 600 seconds so it's not like I am trying to hammer the stats.
I ran py-spy to monitor the running python code with the results below.
Many thanks.
The text was updated successfully, but these errors were encountered: