KaotoIO / kaoto

The UI of the Kaoto project
https://kaoto.io
Apache License 2.0
26 stars 23 forks source link

Between 15% and 30% CPU taken when kaoto is opened without any action #643

Open apupier opened 7 months ago

apupier commented 7 months ago

Describe the Bug

I notice an high usage of CPU with just kaoto page opened (without any interaction for a while)

Steps to Reproduce the Bug or Issue

  1. Open Kaoto
  2. Do some action, then stop
  3. --> CPU saty at relatively high usage

Screenshots or Videos

Firefox 2024-01-15 15.48 profile.json.gz

Platform

Online Kaoto version

apupier commented 7 months ago

it is even more than 50% when the Catalog is opened Firefox 2024-01-15 15.53 profile.json.gz

lordrip commented 7 months ago

(RM) Please update it with details from the patternfly team

lhein commented 4 months ago

My observations: The web version of Kaoto has no significant footprint on the system performance. I tried with only canvas open and also with catalog open and with both tests my system was continuing between 3 and 5% system load.

VS Code: VS Code itself has already quite some footprint. When invoking "Create yaml route" jbang then takes quite a peak in the resource consumption for a limited time. After that the system load is at 6-10%. Opening up the catalog takes a short peak in performance and returns quickly to 6-10%.

Tested on Win11 with AMD Ryzen 5 7600 6 Core CPU / 12 VCores with 64 GB RAM and a NVidia 4060TI card, so a rather strong setup.

apupier commented 4 months ago

It is even worse for me now, the CPU load stays above 50%, here with Firefox: image

Fedora 39 Firefox 124.0.1

similar issue with Chrome 123.0.6312.86 : image

Intel Core i7-8650U 8 CPU / 32Gb RAM

lhein commented 4 months ago

Tested on my P1 now and I cannot reproduce this. Wondering if that is maybe a local problem on your end.

Update: When using the top command I can monitor similar values but I think that is maybe a misinterpretation of values. If you check for instance gnome-system-monitor or the mpstat command you will see that the CPU utilization is around 6% in my case for the whole Firefox process.

apupier commented 4 months ago

I know that it triggers the fan of my laptop so there are good chance that it is more than 6%.