yasserqureshi1 / Sneaker-Monitors

A collection of web monitors that notify of restocks or updates on sneaker related sites through Discord Webhook. This includes Shopify, Nike SNKRS (supports 42 countries), Supreme and now Footsite monitors!
GNU General Public License v3.0
462 stars 126 forks source link

High CPU usage #90

Closed francesco-plt closed 3 years ago

francesco-plt commented 3 years ago

I'm using this bot on a Raspberry Pi 4 2gb with the latest version of raspbian headless installed. I've configured Zalando, Solebox, SNKRS and Supreme monitors to run in the background 24/7. The CPU usage of them combined is quite high, it hovers between 7% and 30% each, with the SNKRS monitor spiking to 50% CPU usage. Is there some settings or configuration to lower it?

yasserqureshi1 commented 3 years ago

I'm using this bot on a Raspberry Pi 4 2gb with the latest version of raspbian headless installed. I've configured Zalando, Solebox, SNKRS and Supreme monitors to run in the background 24/7. The CPU usage of them combined is quite high, it hovers between 7% and 30% each, with the SNKRS monitor spiking to 50% CPU usage. Is there some settings or configuration to lower it?

You can increase the delay.

Have a look at this:

https://raspberrypi.stackexchange.com/questions/8077/how-can-i-lower-the-usage-of-cpu-for-this-python-program