We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
In particular, it does the following (calls from java.lang.Runtime()):
rss: totalMemory() heapTotal: maxMemory() heapUsed: totalMemory()
heapUsed ends up being the current size of the heap, regardless of how much is free. It should really be (totalMemory() - freeMemory()).
Given that, should "heapTotal" be "maxMemory" or "totalMemory"? Good question.
Also not sure what to do about "rss". Java doesn't tell us that specifically.
The text was updated successfully, but these errors were encountered:
Change this so that it will do the following, from java.lang.Runtime:
rss and heapTotal: totalMemory() heapMax: maxMemory() heapUsed: totalMemory() - freeMemory()
The result is that you'll be able to actually use heapUsed to see how far you are from the max.
Sorry, something went wrong.
No branches or pull requests
In particular, it does the following (calls from java.lang.Runtime()):
rss: totalMemory()
heapTotal: maxMemory()
heapUsed: totalMemory()
heapUsed ends up being the current size of the heap, regardless of how much is free. It should really be (totalMemory() - freeMemory()).
Given that, should "heapTotal" be "maxMemory" or "totalMemory"? Good question.
Also not sure what to do about "rss". Java doesn't tell us that specifically.
The text was updated successfully, but these errors were encountered: