5

Our SonarQube 6.0 instance has a "sonarqube-6.0/temp/ce" folder than contains 35.9GB of data. The oldest data in that folder is almost 3 months old. A graph of disk space usage over time is shown below.

sonarqube disk space usage

This post suggests that this was fixed in SonarQube 5.1.2, and this post says that it's fixed in SonarQube 5.2. We are running SonarQube 6.0.

How can I configure SonarQube to automatically cleanup the temp directory to remove unnecessary files so that the server doesn't run into disk space issues?

G. Ann - SonarSource Team
  • 22,346
  • 4
  • 40
  • 76
ASnyder
  • 83
  • 5
  • 1
    The `temp/ce` folder contains 1,691 folders, all named with 19 numbers, like `9146917874371972338`. Each folder contains a single .dat file and a single folder named with 18 digits. Inside of that folder there are hundreds of files with either the .txt or the .pb extension. In other words, there is no single key contributor to the disk space usage, but instead many small contributors. Does this answer your question? – ASnyder Aug 04 '17 at 17:05
  • which OS is this running on ? – Nicolas B. Aug 17 '17 at 13:22
  • Windows operating system. – ASnyder Aug 18 '17 at 21:45

1 Answers1

2

Based on the 'C: Label' in your screenshot this seems to be running on Windows OS. If so you may be impacted by:

  • SONAR-9734 - temp storage grows on Windows due to cache under temp/ce not cleaned up
Nicolas B.
  • 7,245
  • 17
  • 29
  • Yes, that accurately describes my problem. Thanks for linking me to this Nicolas. I see that it is currently n progress. I'll watch the issue to keep an eye on it. – ASnyder Aug 18 '17 at 21:48
  • @ASnyder : issue will be fixed in SonarQube v6.6 , you should accept this answer so it can benefit to other users experiencing similar symptoms – Nicolas B. Aug 28 '17 at 11:26