100+ GB cache

I just deleted 100+ GB of cached data from PhpStorm's cache directory. I realize that PhpStorm intentionally has no limit on the cache size, so I'm mostly curious; has anyone ever seen the cache get this big? Any ideas on how this much data built up?

I'm running Mac OS X 10.7.5 and PhpStorm 4.0.3. I've had PhpStorm installed for about two years and this is the first time I've cleaned the cache. I've used PhpStorm with 5-10 projects, each around a few hundred megabytes. After clearing the cache and restarting PhpStorm, the cache is at 95MB (a much more reasonable size).

$ du -sk ~/Library/Caches/WebIde40/caches/* | sort -nr 139497220     ~/Library/Caches/WebIde40/caches/content.dat.storageData 43064     ~/Library/Caches/WebIde40/caches/content.dat.storageRecordIndex 42924     ~/Library/Caches/WebIde40/caches/attrib.dat.storageData 6784     ~/Library/Caches/WebIde40/caches/records.dat 3136     ~/Library/Caches/WebIde40/caches/attrib.dat.storageRecordIndex 320     ~/Library/Caches/WebIde40/caches/names.dat_i 320     ~/Library/Caches/WebIde40/caches/names.dat.keystream 8     ~/Library/Caches/WebIde40/caches/names.dat 4     ~/Library/Caches/WebIde40/caches/records.dat.len 4     ~/Library/Caches/WebIde40/caches/names.dat_i.len 4     ~/Library/Caches/WebIde40/caches/names.dat.len 4     ~/Library/Caches/WebIde40/caches/names.dat.keystream.len

1
7 comments

Hi there,

This is expected, especially with big projects since cache/index folders include quite a bit of info (which should also be stored in fast-to-access manner, which AFAIK means it's not getting compacted when old records/data got removed).

Yes -- I saw ticket with arround 30-50GB (sorry, do not remember exact size, but it was quite large, possibly much larger than I quoted) of indexes on large Java projects (IntelliJ IDEA). This lead to implementing #2 (see below).

  1. Use " File | Invalidate caches..." to perform such activity in case you were deleting them manually.
  2. Since v6 (I believe .. or maybe v5, but this is unlikely) IDE will automatically attempt to compact indexes/caches on start if percentage of free space in such storage goes above certain limit (which will occasionally slow down IDE launch if you have such big size storage/projects).
0
Avatar
Permanently deleted user

My attrib.dat.storageData can go up to over 1TB. The file is located at 

~/.CLion2019.3/system/caches/attrib.dat.storageData

0

Feel free to delete it, but expect your projects to be reindexed on their next reopening.

1TB is a bit abnormal: this could happen when IDE indexes images in your project. Try to exclude directories with images from your project: https://www.jetbrains.com/help/clion/controlling-source-library-and-exclude-directories.html#exclude

0
Avatar
Permanently deleted user

Dmitry Tronin Thank you for your reply.

My project is a bazel project with google's plugin interfering some functionalities, sadly there's no option as "mark as exclude" in the RMB menu. 

0

Are you on CLion? Unfortunately I'm not familiar with this IDE and typical CLion projects, but I would strongly suggest to contact the corresponding team support over Help | Contact Support with this question.

0

Just ran:

cd ~/Library/Caches
sudo du -hs ./* | sort -h

The top listed items are:

2.6G    ./pipenv
8.6G    ./Adobe Camera Raw 2
9.0G    ./com.spotify.client
778G    ./JetBrains

I only use Pycharm and IntelliJ.  And this is after invalidating Caches.

My detail:

429M    ./PyCharm2021.3
854M    ./Toolbox
902M    ./IntelliJIdea2022.1
906M    ./IntelliJIdea2022.2
1.3G    ./PyCharm2022.1
2.0G    ./PyCharm2022.2
3.8G    ./IntelliJIdea2021.3
768G    ./PyCharm2022.3
1

It definitely makes sense to contact PyCharm support on that; there's no reason the caches should take almost 1TB.
Please submit your logs (Help | Collect Logs and Diagnostic Data) in a support ticket (Help | Contact Support).

0

Please sign in to leave a comment.