cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Analysis setting of Batch process.

yohnishi
Organizer

Hi All!

I understand AppMon can analyze the code level of Java batch process.
So is Dynatrace possible to analyze the code level of java batch process?

If it is possible, what setting do I have to set?

If there are the following java batch program code, do I only set "func01" and "func02" method to "Custom service detection" of Dynatrace setting?


===== Sample Java Program Code =====

public class BatchTest {
public static void main(String[] args) {
func01();

func02();

}

public static void func01() {

// Batch main func 01

System.out.println("Batch main func01 ");

testSleep(10000); // sample processing

}

public static void func02() {

// Batch main func 02

System.out.println("Batch main func02 ");

testSleep(3601000); // sample processing

}

public static void testSleep(int ms) {

try {

System.out.println(" [testSleep stop "+ms+"msec]");

Thread.sleep(ms);

System.out.println(" restart");

} catch(InterruptedException e){

e.printStackTrace();

}

}

}

=================================

Regards,
Yasuo Ohnishi


3 REPLIES 3

Julius_Loman
DynaMight Legend
DynaMight Legend

Correct, however, you need to specify also the class name including the java package for a service.


Certified Dynatrace Master | Alanata a.s., Slovakia, Dynatrace Master Partner

yohnishi
Organizer

Hi Julius,

Thank you for your information! I understand the setting and I will try the analysis of Batch.

I have one more question. How many minutes is the timeout of one PurePath?

Regards,
Yasuo Ohnishi


Sorry, no idea.


Certified Dynatrace Master | Alanata a.s., Slovakia, Dynatrace Master Partner

Featured Posts