# Analysis setting of Batch process.

**URL:** <https://community.dynatrace.com/t/analysis-setting-of-batch-process/16100>\
**Category:** Open Q&A\
**Tags:** java\
**Created:** [October 3, 2018, 8:04am UTC](https://community.dynatrace.com/t/analysis-setting-of-batch-process/16100 "2018-10-03T08:04:46Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![yohnishi](https://avatars.discourse-cdn.com/v4/letter/y/258eb7/32.png) [@yohnishi](https://community.dynatrace.com/u/yohnishi)\
**Post date:** [October 3, 2018, 8:04am UTC](https://community.dynatrace.com/t/analysis-setting-of-batch-process/16100/1 "2018-10-03T08:04:46Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Julius\_Loman](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/julius_loman/32/51_2.png) [@Julius\_Loman](https://community.dynatrace.com/u/Julius_Loman)\
**Post date:** [October 3, 2018, 11:07am UTC](https://community.dynatrace.com/t/analysis-setting-of-batch-process/16100/2 "2018-10-03T11:07:56Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![yohnishi](https://avatars.discourse-cdn.com/v4/letter/y/258eb7/32.png) [@yohnishi](https://community.dynatrace.com/u/yohnishi)\
**Post date:** [October 4, 2018, 8:25am UTC](https://community.dynatrace.com/t/analysis-setting-of-batch-process/16100/3 "2018-10-04T08:25:02Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Julius\_Loman](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/julius_loman/32/51_2.png) [@Julius\_Loman](https://community.dynatrace.com/u/Julius_Loman)\
**Post date:** [October 4, 2018, 9:53am UTC](https://community.dynatrace.com/t/analysis-setting-of-batch-process/16100/4 "2018-10-04T09:53:47Z")

</div>

Sorry, no idea.
