Sonarlint 10.x on Eclipse uses a lot of disk space (several tens of Go)

Hi,

On Windows 10, Eclipse 2024-03, Sonarlint 10.1.0.81817 with multiple java project, connected on Sonarqube 9.9.3.79811.

A lot of disk space is used by the plugin:
directory worskspace/.sonarlint : 32,5 Go
directory worskapce/.sonarlint/default : 21,2 Go
directory worskapce/.sonarlint/storage: 11,2 Go

I think it started with version 10 of the plugin.
I don’t know how much it took before this version, but it was negligible.
Is this normal?

Thanks.

Hi @Ricetrac ,

Could you please provide a bit more information about the folder structure inside of worskapce/.sonarlint/storage and worskapce/.sonarlint/default and what is stored inside?

From version 10, the Eclipse SonarLint plugin starts a separate process for a library providing a backend implementation. I suspect the process might not be terminating cleanly, which may cause some leftover files to be present.

Best,

Vojtech

Hi @vojtech.suchy

Thank’s for your response.
Attached is a Word document summarizing the contents of these directories.
directory workspace.zip (222.5 KB)

Thanks.

Julien

Hello @Ricetrac
I’ve created a ticket based on your feedback. You can track the progress here.

Hello @Kirill_Knize

Thanks for your response.

  • Eclipse version: 4.31.0 (2024-03)
  • Operating system: Ubuntu 22.04.4
  • SonarLint plugin version: 10.2.0.81875
  • Programming language you’re coding in: Java 17
  • Connected to SonarQube 9.9.4 (not all projects are connected to the server)

Whenever I restart Eclipse, or switch workspaces, the folder .sonarlint/default in my workspaces starts to grow slowly, adding approx. 600 MB over a few minutes every time.

So, for example, after 100 restarts, it contains 60 GB. This can take only a few days, depending on how frequently I switch workspaces.

I usually delete the complete .sonarlint directory when it has become too large.

How can I prevent that? Is it a known issue?

Hey @hok

It is a known issue, and your thread has been merged with another report.

Thanks!

1 Like