# What are the conditions for capturing processes

**URL:** <https://community.dynatrace.com/t/what-are-the-conditions-for-capturing-processes/18700>\
**Category:** Open Q&A\
**Tags:** process-groups, dynatrace-saas\
**Created:** [March 9, 2020, 9:05am UTC](https://community.dynatrace.com/t/what-are-the-conditions-for-capturing-processes/18700 "2020-03-09T09:05:08Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ntanaka](https://avatars.discourse-cdn.com/v4/letter/n/74df32/32.png) [@ntanaka](https://community.dynatrace.com/u/ntanaka)\
**Post date:** [March 9, 2020, 9:05am UTC](https://community.dynatrace.com/t/what-are-the-conditions-for-capturing-processes/18700/1 "2020-03-09T09:05:08Z")

</div>

Hi,

I want to discuss about the conditions for capturing processes.  
A batch process which we want to monitor is not detected when we ran it only once.  
When we ran it once a minute for 2 minutes, it was detected.

I guess we need to run a process which we want to capture, but how many seconds do we need to run?

[Details]

- The process is .NET Application (.NET Framework 4.7.2.0)
- CLR (FullCLR 4.0.30319.0)
- We created custom process detection rule

[Dynatrace Documentation]

I referred the following URLs

> **[How does oneagent detects OS processes?](https://community.dynatrace.com/t5/Open-Q-A/How-does-oneagent-detects-OS-processes/m-p/79060)**
>
> Hi Guys, what is the mechanism used by oneagent to detect processes in windows/Unix ? Does it use tasklist for windows and ps interface for unix? Thanks Himanshu Mor

> **[Which are the most important processes?](https://docs.dynatrace.com/docs/observe/infrastructure-observability/process-groups/basic-concepts/which-are-the-most-important-processes)**
>
> Display the most important processes for monitoring and process grouping.

It says we can view the following processes after clicking “All processes” button.

1. Processes that are well known applications(Java, .NET, and so on)  
2. Processes that have an open TCP listening port  
3. Processes that use server resources(Avg(CPU) \> 5%, Max(Memory) \> 5%, Network Traffic \> 5%)  
4. Processes that have been defined by a user as being important

The process we want to capture is .NET application, so it should be detected even if it does not use server resources like Avg(CPU) \> 5%, Max(Memory) \> 5%, Network Traffic \> 5%.

Best Regards,  
Natsumi Tanaka

---

<div class="post-metadata">

**Author:** ![skrystosik](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/skrystosik/32/21133_2.png) [@skrystosik](https://community.dynatrace.com/u/skrystosik)\
**Post date:** [March 9, 2020, 10:52am UTC](https://community.dynatrace.com/t/what-are-the-conditions-for-capturing-processes/18700/2 "2020-03-09T10:52:18Z")

</div>

The question is if you have instrumentation for this .NET application. When it is detected, do you se services and requests on it? If not, create custom service, this should help. Another option is that, Dynatrace may ignore process that Are executed to rare. In such case, I suggest as well creation of custom process group detection rule. In such case you should force dynatrace to keep this process active.

Sebastian

---

<div class="post-metadata">

**Author:** ![ntanaka](https://avatars.discourse-cdn.com/v4/letter/n/74df32/32.png) [@ntanaka](https://community.dynatrace.com/u/ntanaka)\
**Post date:** [March 10, 2020, 12:38am UTC](https://community.dynatrace.com/t/what-are-the-conditions-for-capturing-processes/18700/3 "2020-03-10T00:38:31Z")

</div>

Hi, Sebastian.  
Thank you for your comment.  
I think we have done all settings you suggested.

We have created custom service.  
We cannot capture batch process, we cannot scan classes and methods, so we created it manually.

More, we have created custom process detection rule, and process monitoring rules.

I think dynatrace ignore processes which run in a very short time.

But I wonder if it is defined or bug…
