Fully featured low overhead profiler for Java EE and Java SE platforms.
Ultimate profiling and monitoring solution for Gradle, Maven, Ant, JUnit and TestNG.
Easy to use performance and memory profiler for .NET framework.

Aggregation of results in the profiler

Moderators: Vladimir Kondratyev, Anton Katilin

Aggregation of results in the profiler

Postby dadler » Mon Mar 30, 2015 9:13 am

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

Postby dadler » Mon Mar 30, 2015 9:22 am

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
dadler
 
Posts: 3
Joined: Wed Mar 25, 2015 4:32 pm

Re: Aggregation of results in the profiler

Postby Anton Katilin » Mon Mar 30, 2015 10:22 am

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
Anton Katilin
 
Posts: 5575
Joined: Wed Aug 11, 2004 8:37 am


Return to Java Profiler

Who is online

Users browsing this forum: Bing [Bot] and 7 guests