Skip to content

VM does not return memory to OS #25178

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

Closed
scheglov opened this issue Dec 8, 2015 · 4 comments
Closed

VM does not return memory to OS #25178

scheglov opened this issue Dec 8, 2015 · 4 comments
Labels
area-vm Use area-vm for VM related issues, including code coverage, and the AOT and JIT backends.

Comments

@scheglov
Copy link
Contributor

scheglov commented Dec 8, 2015

  • Start IntelliJ

  • Import the whole SDK repo as a project

  • Open Observatory, notice that VM uses 2.5 GB of heap

  • Close the SDK project.

  • Switch back to Observatory, open Heap Allocation, to GC

  • The memory usage dropped to 238 MB, the allocated heap is still 2.4 GB.

    Why?

image

@scheglov scheglov added the area-vm Use area-vm for VM related issues, including code coverage, and the AOT and JIT backends. label Dec 8, 2015
@scheglov
Copy link
Contributor Author

scheglov commented Dec 8, 2015

@alexander-doroshko

@azenla
Copy link
Contributor

azenla commented Jan 6, 2016

Is this related to #24938?

@scheglov
Copy link
Contributor Author

scheglov commented Jan 6, 2016

Yes, it seems so.

@rmacnak-google
Copy link
Contributor

The VM returns memory to the OS when every object on a page if no longer reachable. If the fraction of old space that is used is low, it is likely fragmentation.

#30978

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-vm Use area-vm for VM related issues, including code coverage, and the AOT and JIT backends.
Projects
None yet
Development

No branches or pull requests

3 participants