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

Incorrect Own Time

Moderators: Vladimir Kondratyev, Anton Katilin

Incorrect Own Time

Postby andrew.schmidt » Wed Jun 05, 2019 1:36 pm

We just purchased the latest version of yourkit and noticed incorrect own times.

Running under wildfly 15 we have a servlet Filter:

Code: Select all
@WebFilter( "/*" )
@SuppressWarnings( "unused" )
public class SessionInvalidationFilter implements Filter
{

    @Override
    public void doFilter( ServletRequest request, ServletResponse response, FilterChain chain ) throws IOException, ServletException
    {
        try
        {
            chain.doFilter( request, response );
        }
        finally
        {

        }

    }


After hitting our rest endpoint repeatly, yourkit reports the above doFilter having Time of 852,996 and Own time of 787,034.

Since this method does virtually nothing, how does it have so much own time? The call out to chain.doFilter says it's time is 65,759
andrew.schmidt
 
Posts: 1
Joined: Wed Jun 05, 2019 1:32 pm

Re: Incorrect Own Time

Postby Anton Katilin » Thu Jun 06, 2019 6:11 am

Own time depends on applied filters: https://www.yourkit.com/docs/java/help/filters.jsp
Please try expanding filtered calls or turn filters off.

If this doesn't work for you please send the snapshot file to support@yourkit.com
Anton Katilin
 
Posts: 5825
Joined: Wed Aug 11, 2004 8:37 am


Return to Java Profiler

Who is online

Users browsing this forum: No registered users and 13 guests

YourKit uses cookies and other tracking technologies to improve your browsing experience on our website, to show you personalized content and targeted ads, to analyze our website traffic, and to understand where our visitors are coming from.

By browsing our website, you consent to our use of cookies and other tracking technologies in accordance with the Privacy Policy.