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.

Profiling Springboot app does not show REST methods

Moderators: Vladimir Kondratyev, Anton Katilin

Profiling Springboot app does not show REST methods

Postby natnaelg » Tue Dec 11, 2018 2:01 am

When profiling Springboot app, REST method calls are not being displayed under CPU tab -> Method list.

For testing purpose, I wrote the following slow code and made request while profiling.

@RequestMapping(value = "/test", method = RequestMethod.GET)
public void testMethod() {
Set<String> list = new HashSet<>();
String str = "";
for(int j=0; j<5000; j++) {
str += java.util.UUID.randomUUID().toString();
list.add(str);
}
System.out.println(str);
}

When making request to the REST endpoint, testMethod() is not being displayed on method list.

Image

I also tried creating snapshot and searching for the respective method, but no luck.

Image


Thanks in advance for the support.
natnaelg
 
Posts: 2
Joined: Tue Dec 11, 2018 1:16 am

Re: Profiling Springboot app does not show REST methods

Postby Anton Katilin » Tue Dec 11, 2018 10:13 am

Could you please provide the snapshot file. Please send the download link to support@yourkit.com
Anton Katilin
 
Posts: 5824
Joined: Wed Aug 11, 2004 8:37 am

Re: Profiling Springboot app does not show REST methods

Postby natnaelg » Tue Dec 11, 2018 3:31 pm

Hi Anton,

I have emailed the snapshot file to support@yourkit.com

Thanks.
natnaelg
 
Posts: 2
Joined: Tue Dec 11, 2018 1:16 am

Re: Profiling Springboot app does not show REST methods

Postby Anton Katilin » Wed Dec 12, 2018 11:25 am

Hi,

We answered your email.

Best regards,
Anton
Anton Katilin
 
Posts: 5824
Joined: Wed Aug 11, 2004 8:37 am

Re: Profiling Springboot app does not show REST methods

Postby Anton Katilin » Thu Dec 13, 2018 8:52 pm

Update: the problem was with default filters.
Anton Katilin
 
Posts: 5824
Joined: Wed Aug 11, 2004 8:37 am


Return to Java Profiler

Who is online

Users browsing this forum: No registered users and 19 guests

cron