05 Nov 2018 01:05 PM - last edited on 27 Feb 2023 08:40 AM by Karolina_Linda
Hello,
I'm trying to find where the time is consumed in a Java batch application with Dynatrace. I created a custom entry point (custom service) that match the main method of the batch and the method called iteratively. The process is detected but I don't know where to find the resulted distributed traces.
JP
Solved! Go to Solution.
05 Nov 2018 02:19 PM
You should see the custom service in the Transactions & services overview.
You can use the filter for Service Type: Custom service:
05 Nov 2018 03:07 PM
Thank you @Patrick H. for your answer. I was trying on a test batch :
public class Entree {
public static void main(String[] args) throws Exception {
doIt();
}
private static void doIt() throws InterruptedException {
while (true) {
System.out.println(" Il est " + new Date() );
Thread.sleep(5000);
}
}
}
and it didn't work (?).
I tried on my real batch, and now it seems to works.
Thank you for your help,
JP
06 Nov 2018 09:43 AM
Maybe you didn't restart the process or activate Hot Sensor Placement for Java when configuring the test Batch?
06 Nov 2018 12:32 PM
Patrick,
I did restart the process. I'll try to understand later, when I have some time.
Regards,
JP