Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Limit Extension storage usage #185

Closed
jrieken opened this issue Apr 13, 2017 · 8 comments
Closed

Limit Extension storage usage #185

jrieken opened this issue Apr 13, 2017 · 8 comments

Comments

@jrieken
Copy link

jrieken commented Apr 13, 2017

From @Geeprox on April 13, 2017 9:39

  • VSCode Version: 1.11.1
  • OS Version: Windows 7

There are so many index.db files that takes a lot of storage space
(for example: \AppData\Roaming\Code\User\workspaceStorage\13d502476c69532f0fce4f9ab9ea9f18\redhat.java\jdt_ws.metadata.plugins\org.eclipse.jdt.core\index.db)

I know they are useful caches, but can we give it a limit space or give it a survival time or something else?

Copied from original issue: microsoft/vscode#24666

@fbricon
Copy link
Collaborator

fbricon commented Apr 13, 2017

Wow, indeed, the workspaceStorage grows freakingly fast. My 13 workspaces eat up to 3.5GB :-/

This is caused by Eclipse JDT new Java index . There's nothing much we can do at that point about limiting its size, other than disabling it completely, which is not something I'm too keen on doing (i.e. exposing another eclipse internal). I'll ask the JDT team about it

@gorkem
Copy link
Contributor

gorkem commented Apr 13, 2017

Larger index files vs speedier searches was a design decision. I do not think this is a performance problem though.

@fbricon
Copy link
Collaborator

fbricon commented Apr 13, 2017

So I commented on Eclipse Bugzilla.

Turns out even disabling the index will not prevent the index.db creation.

@fbricon
Copy link
Collaborator

fbricon commented Nov 14, 2019

@fbricon
Copy link
Collaborator

fbricon commented Sep 14, 2021

@rgrunber https://twitter.com/artursignell/status/1437817323574943748 reminded me of this issue. We should prioritize this work in the coming sprints

@rgrunber
Copy link
Member

rgrunber commented Sep 17, 2021

I'm going to close this issue as it was originally filed against the index.db files generated by the new index. Lately they should not be generated as the new index was disabled (for not providing the kind of performance boost that was expected), so we're back to the old ${checksum}.index files, which we can address in the recently filed #2110.

@sguillia
Copy link

Hi

redhat.java 0.82.0 is taking several gigabytes of storage

Storage contains big files like 624288547.index and 4.tree. Example:

.config/Code/User/workspaceStorage/x/1/jdt_ws/.metadata/.plugins/org.eclipse.jdt.core/624288547.index

Is this expected behavior? If so, could the extension be configured to

  • clear its cache when it exceeds a certain size,
  • write on an external device,
  • or do not produce big files in the first place?

Thanks for your help

@rgrunber
Copy link
Member

@sguillia yes, that's what we're planning in #2110.

I think the first part will be to create some setting option that clears out older workspace storage locations (eg. $HOME/.config/Code/User/workspaceStorage/x/1/jdt_ws) that are have not been accessed for over some configurable period of time. Any of the data deleted, is simply cached data that could be re-generated when the project is opened once again. It would only take a bit longer to generate.

The second part would be to take advantage of some capabilities we have to share indexes across projects, where possible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants