jfr view: Regarding adding "Allocated" column to the allocation related 3 views

Erik Gahlin erik.gahlin at oracle.com
Wed Mar 20 09:56:16 UTC 2024


Hi,

The value is sample-based and only a rough estimate. That's why only a percentage is shown. The purpose is to find the worst offenders. Thread allocation is more precise as it looks at a byte value stored in the thread.

(I might come off as negative to your suggestions, but when I implemented 'jfr view' I tried many different views and layouts, only the best made it. The main reason I created the query language was so I could quickly try things out.)

Erik
________________________________
From: hotspot-jfr-dev <hotspot-jfr-dev-retn at openjdk.org> on behalf of Long Yang <yibo.yl at alibaba-inc.com>
Sent: Wednesday, March 20, 2024 3:46 AM
To: hotspot-jfr-dev at openjdk.org <hotspot-jfr-dev at openjdk.org>
Subject: jfr view: Regarding adding "Allocated" column to the allocation related 3 views

hi all

jfr view has three predefined views regarding allocation: allocation-by-thread, allocation-by-class, allocation-by-site.
Currently, these three views only show percentages.
Usually, we will first look at the absolute value of memory application (total number of allocated bytes).
When the absolute value is larger enough, the items with larger proportions are more meaningful.
I don’t know if I can add Allocated column to these three views, similar to the thread-allocation view.

                                            Allocation by Class
Object Type                                                    Allocated Allocation Pressure
--------------------------------------------- ---------------- -------------------
byte[]                                                                 11.7 GB              99.82%

Best Regards
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/hotspot-jfr-dev/attachments/20240320/1209b4ba/attachment.htm>


More information about the hotspot-jfr-dev mailing list