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

Sonar generates huge CPU spikes every 5-10 seconds when there's no config file #20

Open
faelenor opened this issue Sep 8, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@faelenor
Copy link

faelenor commented Sep 8, 2024

What happened

When there's no sonar.conf file, sonar restarts every 10 seconds, creating huge CPU spikes that can disrupt a print. It shows this message when happening:

WARN: No configuration file found ... INFO: Using fallback setup ...

This message is misleading because it gives the impression that Sonar will use the fallback config, but it's not. The fallback config is the one in the resources directory and it has this line:

enable: false

I would expect the service to stop, but it's still restarting every 5-10 seconds.

What did you expect to happen

I expect the service to stop for good when there's no config file. If not, then I would expect it to show a better warning than the current one.

How to reproduce

Just delete the sonar.conf file.

Additional information

No response

@faelenor faelenor added the bug Something isn't working label Sep 8, 2024
@faelenor faelenor changed the title Sonar generates huge CPU spikes every 10 seconds when there's no config file Sonar generates huge CPU spikes every 5-10 seconds when there's no config file Sep 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant