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

Examined memory usage #438

Closed
angelozerr opened this issue Jun 14, 2019 · 1 comment
Closed

Examined memory usage #438

angelozerr opened this issue Jun 14, 2019 · 1 comment
Assignees
Labels
performance This issue or enhancement is related to performance concerns
Milestone

Comments

@angelozerr
Copy link
Contributor

angelozerr commented Jun 14, 2019

This issue is not really an issue but a feedback about memory.

Here some feedback with memory with a teh big file nasa.xml. The test is to open this big file and add/remove a lot of characters inside the editor:

  • test 1: my first step was to disable everything : all services returns empty list or null (ex : completion, hover return null). and the text document is not cached.

image

as you can see memory grow up upon 1GB. Once GC is executed, memory is about 0 B.

In this test only lsp4j thread which sends/receives JSON is executed:

image

  • test 2: in this test I add the store of TextDocument -and the content of the XML file in a String). The String (char[]) takes around 5010188 B (around 5 MB)

image

as you can see memory grow up upon 1GB (like the test 1). Once GC is executed, memory is about 5 MB.

@angelozerr
Copy link
Contributor Author

I close this issue since 0.8.0 improve drastically the memory.

@angelozerr angelozerr added this to the v0.8.0 milestone Jul 16, 2019
@angelozerr angelozerr self-assigned this Jul 16, 2019
@angelozerr angelozerr added the performance This issue or enhancement is related to performance concerns label Jul 23, 2019
@angelozerr angelozerr changed the title Feedback from memory Examined memory usage Jul 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
performance This issue or enhancement is related to performance concerns
Projects
None yet
Development

No branches or pull requests

1 participant