hcavarsan / kftray

kubectl port-forward on steroids 🦀 ⚡ kftray makes it easy for you to manage and share multiple k8s port forwards right from your menu bar (or terminal)
https://kftray.app/
GNU General Public License v3.0
846 stars 64 forks source link

High idle CPU utilisation #137

Closed JamieG closed 8 months ago

JamieG commented 8 months ago

Describe the bug When the application is running it's constantly hitting between 10% and 20% utilisation even with the UI hidden, unaffected by if the port forwards are enabled or not.

To Reproduce Steps to reproduce the behaviour:

  1. Start the application
  2. Monitor CPU utilisation using Task Manager

Expected behaviour CPU utilisation and memory allocations should be close to zero whilst the application is not performing any actions.

Screenshots 2024-02-26 12_58_16-Task Manager

Desktop (please complete the following information):

dracan commented 8 months ago

I get the same too. I've actually stopped using it because of this. Shame, as it would be really useful if it wasn't for this high resource usage.

hcavarsan commented 8 months ago

@JamieG @dracan its a weird behavior. i'll dig into the error locally and hit you up with any news. thx for the heads up

hcavarsan commented 8 months ago

@JamieG @dracan ok, I just fixed a useEffect in the frontend that was apparently looping, and now it seems that the problem has been solved, can you check if it's ok now?

the fix is in this new release: https://github.com/hcavarsan/kftray/releases/tag/v0.7.1

dracan commented 8 months ago

Looks good! :)

image

JamieG commented 8 months ago

Looks good, thanks for fixing so quickly. This is a really nice tool thanks!

hcavarsan commented 8 months ago

thank you for the feedback! hope you are enjoying it. if you have any issues, please let me know.