Aggregation of results in the profiler

Questions about YourKit Java Profiler
Post Reply
dadler
Posts: 3
Joined: Wed Mar 25, 2015 4:32 pm

Aggregation of results in the profiler

Post by dadler »

Hello,

Does the profiler have the capability to be attached to the application, run some usecase (that takes for example one hour) and then to display the memory usage (for example by classes) during all this time (aggregation of the usages, for example that class X reached 500MB during this time), the SQL statements executed during this time and how much time took in aggregation etc.?

I found that we can for example take a periodic dump every X minutes however this only displays what happens in the same second and not what happened until then.

Thank you,
Dima
dadler
Posts: 3
Joined: Wed Mar 25, 2015 4:32 pm

Re: Aggregation of results in the profiler

Post by dadler »

Moreover, SQL statements statistics are not available in the live view so how can they be monitored even not in aggregation. We do not know when exactly to capture so that we can "catch" some statement to know its time.
Also as mentioned in the original question, if we can have an aggregation of the whole run this is the best.

Thank you,
Dima
Anton Katilin
Posts: 6172
Joined: Wed Aug 11, 2004 8:37 am

Re: Aggregation of results in the profiler

Post by Anton Katilin »

Hello Dima
to display the memory usage (for example by classes) during all this time (aggregation of the usages, for example that class X reached 500MB during this time),
You can monitor the heap and non-heap memory usage as a whole using the memory telemetry graphs, but you can't see how many instances of particular class exist at a particular time point unless you explicitly enumerate them. Performing such enumeration is a relatively expensive operation, and thus is not acceptable as a part of the general telemetry sample performed each second by default.

Instead, you may indeed capture memory snapshots periodically, or use allocation recording. Or write a trigger to register creation of instances of particular classes of interest.

Could you please provide some detail on instances of what classes you are interested in. Perhaps we'll be able to find a better way to handle this.
the SQL statements executed during this time and how much time took in aggregation etc.?
You can. Please use the Events:
https://www.yourkit.com/docs/java/help/probes_ui.jsp
and performance charts:
https://www.yourkit.com/docs/java/help/perf_charts.jsp
Please note that many probes are by default in the Auto state, so you may need to either start CPU profiling (e.g. sampling) or change the state to On:
https://www.yourkit.com/docs/java/help/ ... probes.jsp
SQL statements statistics are not available in the live view
That's right, but the Events which they are based on are.

As well as the performance charts.

Best regards,
Anton
Post Reply