content.dat.storageData 50GB - is that normal?


I'm not exactly blessed with space on my wonderful Macbook Pro, so when I had a look to see what was eating space I saw this:

Administrators-MacBook-Pro:~ pward$ cd Library/Caches/WebIde60/caches/
Administrators-MacBook-Pro:caches pward$ ls -la
total 102824688
drwxr-xr-x  14 pward  staff          476 29 May 19:46 .
drwxr-xr-x  13 pward  staff          442 30 May 09:40 ..
-rw-r--r--   1 pward  staff     12935704 31 May 08:47 attrib.dat.storageData
-rw-r--r--   1 pward  staff      6914712 31 May 08:47 attrib.dat.storageRecordIndex
-rw-r--r--   1 pward  staff  52598029024 31 May 08:48 content.dat.storageData
-rw-r--r--   1 pward  staff     14261368 31 May 08:48 content.dat.storageRecordIndex
-rw-r--r--   1 pward  staff         4096 31 May 08:46 names.dat
-rw-r--r--   1 pward  staff      1389321 31 May 08:46 names.dat.keystream
-rw-r--r--   1 pward  staff            8 31 May 08:46 names.dat.keystream.len
-rw-r--r--   1 pward  staff            8 31 May 08:46 names.dat.len
-rw-r--r--   1 pward  staff      1389321 31 May 08:46 names.dat_i
-rw-r--r--   1 pward  staff            8 31 May 08:46 names.dat_i.len
-rw-r--r--   1 pward  staff     11283983 31 May 08:48 records.dat
-rw-r--r--   1 pward  staff            8 31 May 08:48 records.dat.len

I've seen a few posts mentioning files of 1GB, but 50GB seems excessive? What do other people have?
What's actually in this file? Is it safe to delete it and let it be rebuilt?

I use PHPStorm 6.0.2 and all of my projects are over NFS for VMs on my local machine. Quite often I'm on the move and lose network connection which causes a few problems saving files, I wondered if this might have anything to do with growing such a large cache file, otherwise I think my behaviour is relatively normal (if there is such a thing!).

Comment actions Permalink

Hi there,

It depends on number of projects you have; how big they are (number of files and most importantly code); etc.

You can always use "File | Invalidate Caches..." to get this sorted (project will be re-indexed when you open it next time, which may take a while if project is big).

As for "50GB" size -- that's a lot .. but I have seen such figures in some other (not PhpStorm, but IntelliJ IDEA) threads -- but projects there were really big and no caches invalidation was performed for a long time.

Comment actions Permalink


Thanks for the fast response.

I've had a few versions of the same project which have crept in and can be cleared (I was unaware of the cache invalidation - thanks).

I think the main cause is one of my projects has a very large directory of images, 16GB. I didn't realise it was quite so big but I imagine this isn't going to help!  Is there anyway to ignore directories from being cached? I have no need to access the contents from within PHPStorm.

Thanks again.

Comment actions Permalink
Is there anyway to ignore directories from being cached? I have no need to access the contents from within PHPStorm.

Right click on such folder in Project View | Mark Directory As | Excluded
.. or the same via "Preferences | Directories | Excluded"

Since you cannot do this in advance (before opening the project) -- you will have to use cache invalidation after such step (if you want to have smaller cache/index size).

IDE may still scan those excluded folders at some moments (for other reasons) .. but they should not be included in indexes.

Comment actions Permalink

Great, thank you!

I'm down to 900MB now for my main project, which still seems a lot, but is much more acceptable.

Thanks again.


Please sign in to leave a comment.