简体   繁体   中英

JProfiler Profiling a new thread

Im using Jprofiler to profile a tomcat web application.

The web application contains a file search.jsp .

Jprofiler hot spot shows that the search.jsp is a hot spot and from its methods, it takes long time to execute the following method:

java.util.concurrent.ThreadPoolExecutor$Worker.run

This is the end of call tree, but I want to know what is happening inside this method.

Is there any way to profile methods of a new thread?

JProfiler always intercepts the entry point of a thread, which is the run method. Beyond that, a lot of time may be spent in framework classes that are not profiled. All that time is attributed as the inherent time of the "Thread.run" method.

To see what classes are actually called, switch to sampling and disable all filters.

Afterwards, you can enable the filters again and add appropriate inclusive filters on the "Filter settings" step.

在此处输入图片说明

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM