Sonarlint plugin for PhpStorm consumes a lot of disk space

230 views
Skip to first unread message

soren.o...@gmail.com

unread,
Apr 28, 2016, 2:23:14 AM4/28/16
to SonarLint
First I'd like to thank your for your work. Sonarlint is a tool I really appreciate.

I am using Sonarlint 2.0.1 for PhpStorm and I ran into an issue recently.
PhpStorm was consuming all the disk space I had left. It turns out that it is because of Sonarlint.
After a few research I saw that there were temporary files stored at the following location : /home/me/.PhpStorm2016.1/config/sonarlint/work.
This directory was using 12Gb on my computer. Each time I'm editing a file, a new file is created inside this directory and it seems never to be cleared.
Is there a reason for this ? I think things could be improved here. For now I have to clean this directory by myself.
Regards, Sören Ohnmeiss

duarte.meneses

unread,
Apr 28, 2016, 5:05:48 AM4/28/16
to SonarLint, soren.o...@gmail.com
It is certainly not intended.
I'm not able to reproduce the issue in PhpStorm, though.  I don't find files being created for each analysis.
There are temporary files that are created on each startup, that are not being cleaned, which is a jar with the name sonar-plugin-api-deps[...]. We are currently looking into it and we will have a ticket for it soon.

Could you please post the list of temporary files that you have in sonarlint/work?

soren.o...@gmail.com

unread,
Apr 28, 2016, 5:17:18 AM4/28/16
to SonarLint, soren.o...@gmail.com

The content of sonarlint/work looks like this (I have shortened the list) :

drwxr-xr-x 111 so so 98304 avril 28 11:12 .
drwxr-xr-x   5 so so  4096 avril 18 11:15 ..
drwx------   2 so so  4096 avril 28 10:45 .sonartmp_106482500495926747
drwx------   2 so so  4096 avril 28 10:52 .sonartmp_1130268018772565233
drwx------   2 so so  4096 avril 28 09:57 .sonartmp_113972774844156483
drwx------   2 so so  4096 avril 28 10:50 .sonartmp_1147502357964362766
drwx------   2 so so  4096 avril 28 10:45 .sonartmp_1177043231911206560
drwx------   2 so so  4096 avril 28 11:11 .sonartmp_1286859355105247215
drwx------   2 so so  4096 avril 28 11:08 .sonartmp_1385394770776484563
drwx------   2 so so  4096 avril 28 11:11 .sonartmp_1610002887288537134
drwx------   2 so so  4096 avril 28 09:55 .sonartmp_1628248148136463806
drwx------   2 so so  4096 avril 28 11:12 .sonartmp_1693829871136433201
drwx------   2 so so  4096 avril 28 10:52 .sonartmp_1727863864697388642
drwx------   2 so so  4096 avril 28 10:02 .sonartmp_1789810809184370273
drwx------   2 so so  4096 avril 28 10:46 .sonartmp_1793382760032456316
drwx------   2 so so  4096 avril 28 11:09 .sonartmp_1995937205104367260
drwx------   2 so so  4096 avril 28 10:47 .sonartmp_2004886484046984704
drwx------   2 so so  4096 avril 28 10:48 .sonartmp_2023682790009821334
drwx------   2 so so  4096 avril 28 10:50 .sonartmp_2086637403321174914
drwx------   2 so so  4096 avril 28 11:12 .sonartmp_2169391957030006452
drwx------   2 so so  4096 avril 28 10:47 .sonartmp_2471536458760547626
drwx------   2 so so  4096 avril 28 10:51 .sonartmp_2634737643866315709
drwx------   2 so so  4096 avril 28 10:46 .sonartmp_2668034688428985398
drwx------   2 so so  4096 avril 28 11:06 .sonartmp_2731717212818907965
drwx------   2 so so  4096 avril 28 11:06 .sonartmp_2765155975491966441
drwx------   2 so so  4096 avril 28 11:09 .sonartmp_2784025807110307833

Duarte Meneses

unread,
Apr 28, 2016, 5:19:31 AM4/28/16
to soren.o...@gmail.com, SonarLint
Sorry, I meant the recursive content (output of find, for example). I would like to know which files you have in each of those temporary folders.

--
You received this message because you are subscribed to the Google Groups "SonarLint" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sonarlint+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sonarlint/50ed6d7b-096c-4aae-9351-40d691691831%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
Duarte MENESES | SonarSource

soren.o...@gmail.com

unread,
Apr 28, 2016, 5:24:20 AM4/28/16
to SonarLint, soren.o...@gmail.com

Here it is :
./.sonartmp_8683829161998652289:
total 7944
drwx------   2 so so    4096 avril 28 10:49 .
drwxr-xr-x 111 so so   98304 avril 28 11:12 ..
-rw-------   1 so so 8026030 avril 28 10:49 sonar-plugin-api-deps2537372768729188264jar

./.sonartmp_8822505640039237511:
total 7944
drwx------   2 so so    4096 avril 28 09:56 .
drwxr-xr-x 111 so so   98304 avril 28 11:12 ..
-rw-------   1 so so 8026030 avril 28 09:56 sonar-plugin-api-deps3930224365658061494jar

./.sonartmp_8975021725764101561:
total 7944
drwx------   2 so so    4096 avril 28 09:30 .
drwxr-xr-x 111 so so   98304 avril 28 11:12 ..
-rw-------   1 so so 8026030 avril 28 09:30 sonar-plugin-api-deps1139163449427961207jar

./.sonartmp_9134689331394501226:
total 7944

drwx------   2 so so    4096 avril 28 10:45 .
drwxr-xr-x 111 so so   98304 avril 28 11:12 ..
-rw-------   1 so so 8026030 avril 28 10:45 sonar-plugin-api-deps8955520910452039905jar

./.sonartmp_91459700491715268:
total 7944
drwx------   2 so so    4096 avril 28 09:56 .
drwxr-xr-x 111 so so   98304 avril 28 11:12 ..
-rw-------   1 so so 8026030 avril 28 09:56 sonar-plugin-api-deps216107623972036675jar

./.sonartmp_9195593336383217225:
total 7944
drwx------   2 so so    4096 avril 28 10:08 .
drwxr-xr-x 111 so so   98304 avril 28 11:12 ..
-rw-------   1 so so 8026030 avril 28 10:08 sonar-plugin-api-deps5897640112676546349jar

...And so on. It seems to be the jar file you are talking about. But there is one created at each analysis...

duarte.meneses

unread,
Apr 28, 2016, 8:31:58 AM4/28/16
to SonarLint, soren.o...@gmail.com
I've created a ticket for this issue: https://jira.sonarsource.com/browse/SLI-67

Thanks for reporting it.

Are you sure that a new directory is created for each file analyzed? What I see (and what is expected) is that each directory is created each time a SonarLint engine is started.
SonarLint engines are started for each server binding that is used and for the unbound (standalone) mode.

Sören Ohnmeiss

unread,
Apr 28, 2016, 9:39:02 AM4/28/16
to duarte.meneses, SonarLint
Thanks for considering this issue.

I confirm that a new directory is created each time a file is analyzed, which happens almost every time I make a move.
--
Sören Ohnmeiss

duarte.meneses

unread,
Apr 28, 2016, 12:34:58 PM4/28/16
to SonarLint, duarte....@sonarsource.com, soren.o...@gmail.com
I cannot reproduce that.
Are you using the connected mode or standalone (no binding to a SonarQube server) ?

Sören Ohnmeiss

unread,
Apr 28, 2016, 3:12:10 PM4/28/16
to duarte.meneses, SonarLint
I am using the connected mode in PhpStorm 2016.1 (Build #PS-145.258) with SonarLint 2.0.1.

--
Sören Ohnmeiss

Duarte Meneses

unread,
Apr 29, 2016, 3:39:00 AM4/29/16
to Sören Ohnmeiss, SonarLint
Thanks for all the information. The issue will be fixed in the next version.

Duarte Meneses

unread,
Apr 29, 2016, 5:55:41 AM4/29/16
to Sören Ohnmeiss, SonarLint
FYI I've created another ticket concerning the issue of files created for each analysis: https://jira.sonarsource.com/browse/SLI-73
I still can't reproduce but some of colleagues can. I will work on a fix right away.

Sören Ohnmeiss

unread,
Apr 29, 2016, 6:17:10 AM4/29/16
to Duarte Meneses, SonarLint
Ok, thanks.
--
Sören Ohnmeiss
Reply all
Reply to author
Forward
0 new messages