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

Add "increaseHeapLimit" and "restoreHeapLimit" #118

Closed
wants to merge 8 commits into from

Conversation

paulrutter
Copy link

In order to be able to create a heapdump just before an out of memory occurs, it's necessary to increase the heap limit. Otherwise the heapdump cannot be created. See discussion (and code) in
#109.

These API calls are only available from Node8, so this pull request also incorporates this pull request .

I've updated the documentation and unit tests as well.

With this change i can monitor the (Full) GC's and when an out of memory seems imminent, the heap limit can be increased to allow for proper heapdump creation. For completeness the "restoreHeapLimit" function is also added.

@paulrutter paulrutter closed this Feb 17, 2023
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.

None yet

1 participant