License_usage web api gets timout

We are currently using SonarQube Enterprise Edition Version 9.9.2 (build 77730) in our office to monitor Lines of Code (LOC). To achieve this, we utilize the license_usage API. Initially, the API was functioning sporadically, but for the past month, we have been experiencing persistent timeouts with the API call, and it has not been operational. Could you please assist us in resolving this issue?

Hey there.

A timeout in this case would normally indicate some issues with the database (CPU, memory, disk space, regular reindexing).

What database provider are you using (Postgres, Oracle, SQL Server)?

we are using Postgres database

I would suggest you start by making sure you have run a VACUUM FULL ANALYZE and see if the performance issue persists.