Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 349691 - Exponentially growing number of files in workspace metadata
Summary: Exponentially growing number of files in workspace metadata
Status: NEW
Alias: None
Product: Virgo
Classification: RT
Component: tooling (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-17 09:51 EDT by Daniël van 't Ooster CLA
Modified: 2012-02-16 20:40 EST (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Daniël van 't Ooster CLA 2011-06-17 09:51:05 EDT
Build Identifier: 2.7.0.M2

The directory <workspace>/.metadata/.plugins/com.springsource.server.ide.runtime.core/ seems to contain files used as cache. The amount of files seems to grow exponentially with the number of open projects. When having x open projects, the number of files in this directory (and subdirectory) is about x+x^2 (on my machine, with 54 open projects, 181M). Is there room for optimization here?

Reproducible: Always
Comment 1 Glyn Normington CLA 2011-06-17 10:10:13 EDT
Thanks for raising this.

I don't understand your working since 54+54^2=2970. Where did the 181M come from? Is that 181 Mb rather than 181 million files?
Comment 2 Daniël van 't Ooster CLA 2011-06-17 10:23:09 EDT
Hi Glyn,

it is 181 megabytes of XML files, the directory contains 4185 files, 1004 are coming from the repository subdirectory. The x+x^2 formula is not 100% accurate, but gives a rough idea of the growth of the number of files.

grtz,
Daniël
Comment 3 Glyn Normington CLA 2011-06-17 10:37:22 EDT
Thanks for the clarification! :-)
Comment 4 Miles Parker CLA 2012-02-16 20:40:54 EST
Daniël,

I'm not able to identify the files you're talking about in the current iteration but it's possible I just don't have the same setup you do. The repository/bundles and repository/libraries directories only contain JSON files for me. Can you post an example file along with its locaiton?

thanks,

Miles