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

API for creating and processing heap dumps fully in memory #341

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

JaroslavTulach
Copy link
Contributor

Wouldn't it be great if Heap dump data could be processed in memory, without the need to create anything on disk? Then it would be possible to analyze heap dumps in restricted environments, where access to disk is restricted. This PR is my attempt to provide such functionality.

Looks like the HprofMappedByteBuffer needs the mmapped file only when constructing itself. Then it can operate over regular ByteBuffer. Looks like the system is ready to work without the cache directory when CacheDirectory.cacheDirectory is null.

Adding one new API factory method that takes ByteBuffer instead of the File. Subclassing HeapTest and running the same tests in memory only mode.

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

Successfully merging this pull request may close these issues.

2 participants