Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A lot of CPU load by nettop #536

Closed
linkinek opened this issue Jul 11, 2021 · 10 comments
Closed

A lot of CPU load by nettop #536

linkinek opened this issue Jul 11, 2021 · 10 comments

Comments

@linkinek
Copy link

Describe the bug
I have a lot of CPU load by nettop process. It it happening after update to latest version and happens in randomly time.
CPU normalise only after close Stats and kill nettop process. And if I kill nettop process without close application, process starts again with a lot of CPU load.

Details:

  • Device: Macbook Pro 2018
  • MacOS 11.4 (20F71)
  • Application version 2.5.22
@linkinek linkinek changed the title A lot of CPU by nettop A lot of CPU load by nettop Jul 11, 2021
@exelban
Copy link
Owner

exelban commented Jul 11, 2021

Hi. Thanks for reporting.
Nettop is using to fetch top processes. And it must be running only when you open the popup view. Could you please run the Stats and do not click on the items in the menu bar at all. After some period of time check in the Activity Monitor if the problem appears.

@linkinek
Copy link
Author

Hi.
I updated to 2.5.60 and problem exists yet. Nettop starts immediately after starting the application. But now there are 2 of them.
Can I attach some information for analyse?

@exelban
Copy link
Owner

exelban commented Jul 12, 2021

Hi. What type of network reader do you use?

@linkinek
Copy link
Author

What do you mean?

@exelban
Copy link
Owner

exelban commented Jul 12, 2021

There is an option Reader type in the network module. What option you have selected?

@linkinek
Copy link
Author

Process based

@exelban
Copy link
Owner

exelban commented Jul 12, 2021

Oh, now I see. Unfortunately, it cannot be fixed.
If you have selected Process based, the app calculates network traffic based on nettop data. I could only recommend switching to the Interface based.

nettop is an internal macOS tool. And it's only one way to fetch network traffic without root permissions.

@linkinek
Copy link
Author

Oh... Is there a difference between Process based and Interface based?

@exelban
Copy link
Owner

exelban commented Jul 12, 2021

Yes. Process based using nettop and calculating network bandwidth based on the sum of all processes.
Interface based listening to the bandwidth on the specific interface which is active.

@linkinek
Copy link
Author

Ok. Thanks. I think can close the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants