Incorrect Own Time

Questions about YourKit Java Profiler
Post Reply
andrew.schmidt
Posts: 1
Joined: Wed Jun 05, 2019 1:32 pm

Incorrect Own Time

Post by andrew.schmidt »

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

Re: Incorrect Own Time

Post by Anton Katilin »

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 [email protected]
Post Reply