On Tue, 30 Mar 2021 15:04:57 GMT, Roman Kennke <[email protected]> wrote:

> For Lilliput evaluation, it would be useful to be able to get some statistics 
> about heap objects, e.g. how many objects there typically are, what is their 
> (average) size, how big is the live data set, how many objecs have an 
> identity hash code and how many objects are locked. Some of that information 
> may be useful for general purpose too, e.g. the avg live data set and object 
> size/count information might be quite useful to have.
> 
> Heap object statistics can be gathered and printed by invoking java with 
> -XX:+UnlockDiagnosticVMOptions -XX:+HeapObjectStats -Xlog:heap+stats. It will 
> impact performance of the workload. The sampling interval can be specificed 
> by -XX:HeapObjectStatsSamplingInterval=X (in ms) and defaults to 500 (ms).
> 
> Testing:
>  - [x] Some manual tests, verifying the plausability of the output by hand
>  - [ ] tier1
>  - [ ] tier2

This pull request has been closed without being integrated.

-------------

PR: https://git.openjdk.java.net/jdk/pull/3271

Reply via email to