# Batch profiling with custom services

**URL:** <https://community.dynatrace.com/t/batch-profiling-with-custom-services/16805>\
**Category:** Open Q&A\
**Tags:** distributed-traces-classic, services-classic\
**Created:** [November 5, 2018, 1:05pm UTC](https://community.dynatrace.com/t/batch-profiling-with-custom-services/16805 "2018-11-05T13:05:06Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![Jean-Pierre\_Rio](https://avatars.discourse-cdn.com/v4/letter/j/e8c25b/32.png) [@Jean-Pierre\_Rio](https://community.dynatrace.com/u/Jean-Pierre_Rio)\
**Post date:** [November 5, 2018, 3:07pm UTC](https://community.dynatrace.com/t/batch-profiling-with-custom-services/16805/3 "2018-11-05T15:07:14Z")

</div>

Thank you [@Patrick H.](https://answers.dynatrace.com/users/11534/view.html) for your answer. I was trying on a test batch :

```auto
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

---

_[View the full topic](https://community.dynatrace.com/t/batch-profiling-with-custom-services/16805)._
