# Prevent Dynatrace to create new process group instance

**URL:** <https://community.dynatrace.com/t/prevent-dynatrace-to-create-new-process-group-instance/43504>\
**Category:** Open Q&A\
**Tags:** process-groups, settings, processes\
**Created:** [January 8, 2024, 5:50pm UTC](https://community.dynatrace.com/t/prevent-dynatrace-to-create-new-process-group-instance/43504 "2024-01-08T17:50:30Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![AK](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/ak/32/164_2.png) [@AK](https://community.dynatrace.com/u/AK)\
**Post date:** [January 8, 2024, 5:50pm UTC](https://community.dynatrace.com/t/prevent-dynatrace-to-create-new-process-group-instance/43504/1 "2024-01-08T17:50:30Z")

</div>

Hi Folks,

How can I prevent Dynatrace to create new process group instance if command line argument changes.

We tried to add process instance extraction rule under advance process group detection but that didn’t worked.

Does anyone came across this situation and resolve it successfully?

Regards,

AK

---

<div class="post-metadata">

**Author:** ![DanielS](https://avatars.discourse-cdn.com/v4/letter/d/3ab097/32.png) [@DanielS](https://community.dynatrace.com/u/DanielS)\
**Post date:** [January 8, 2024, 6:23pm UTC](https://community.dynatrace.com/t/prevent-dynatrace-to-create-new-process-group-instance/43504/2 "2024-01-08T18:23:30Z")

</div>

Hello [@AK](https://community.dynatrace.com/user/2080) if I understand you well, you can create an exception, with the option to not monitor a Process Group. I leave you the guide.

 ![DanielS_0-1704738117719.png](https://global.discourse-cdn.com/dynatrace/original/2X/3/369209dc069da8065acf69505ddd8c78de9e59ba.png)

---

<div class="post-metadata">

**Author:** ![AK](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/ak/32/164_2.png) [@AK](https://community.dynatrace.com/u/AK)\
**Post date:** [January 9, 2024, 11:18am UTC](https://community.dynatrace.com/t/prevent-dynatrace-to-create-new-process-group-instance/43504/3 "2024-01-09T11:18:23Z")

</div>

[@DanielS](https://community.dynatrace.com/user/35788), thanks for your comment. However, my dilemma is,

whenever application team does any update in command line argument of process, Dynatrace creates new process group instance. This trigger an alert for old instance and it stays in dead state forever.

We have applied below advance detection rule,

 ![AK_0-1704799002859.png](https://global.discourse-cdn.com/dynatrace/original/2X/a/a066cc1e76785d6f1e4ed041ef49a56ec8e4cd3c.png)

Regards,

AK

---

<div class="post-metadata">

**Author:** ![AK](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/ak/32/164_2.png) [@AK](https://community.dynatrace.com/u/AK)\
**Post date:** [January 10, 2024, 10:31am UTC](https://community.dynatrace.com/t/prevent-dynatrace-to-create-new-process-group-instance/43504/4 "2024-01-10T10:31:46Z")

</div>

Has anyone came across this situation?

Regards,

AK

---

<div class="post-metadata">

**Author:** ![AntonPineiro](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/antonpineiro/32/49_2.png) [@AntonPineiro](https://community.dynatrace.com/u/AntonPineiro)\
**Post date:** [January 10, 2024, 10:49am UTC](https://community.dynatrace.com/t/prevent-dynatrace-to-create-new-process-group-instance/43504/5 "2024-01-10T10:49:00Z")

</div>

Hi,

Regarding that alert. Is process availability enabled?

Just thinking that you can use process group alert or OS services monitoring if that process is in relation to some service.

Best regards

---

<div class="post-metadata">

**Author:** ![fstekelenburg](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/fstekelenburg/32/22029_2.png) [@fstekelenburg](https://community.dynatrace.com/u/fstekelenburg)\
**Post date:** [January 10, 2024, 7:54pm UTC](https://community.dynatrace.com/t/prevent-dynatrace-to-create-new-process-group-instance/43504/6 "2024-01-10T19:54:24Z")

</div>

[@AK](https://community.dynatrace.com/user/2080)&nbsp;, question: is the change performed in a Maintenance Windows set in Dynatrace, configured with “Disable problem detection” (Do Not Monitor, Do Not Alert)?

I have noticed something similar recently with a (DT\_CLUSTER\_ID) change that changed the process(group) names.  
I assume that because Dynatrace did not monitor, it did not notice the clean stop of the application’s processes. After the maintenance window ended, the new process names were monitored fine, but availability Problems were created for the old processes, that only could be manually closed.  
If that indeed is the case, the MW might better be set to ‘ **Detect problems but don’t alert** ’ for such changes.

---

<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:** [January 11, 2024, 7:32am UTC](https://community.dynatrace.com/t/prevent-dynatrace-to-create-new-process-group-instance/43504/7 "2024-01-11T07:32:15Z")

</div>

[@AK](https://community.dynatrace.com/user/2080)&nbsp; It’s always a cat-and-mouse problem if you are trying to keep up with the monitoring definitions and the operations team makes sudden changes you are not aware of in advance.

The way I recommend customers to migitage such scenarios is to use environment variables for determining the process group and instance. For example if your company is ACME, then having something like:

- **ACME\_APP** &nbsp;- determines process group (required)
- **ACME\_APP\_INSTANCE** &nbsp;- determines instance within the process group (optional)
- … others if required

Then have a generic set of process group detection rules for that. You can always change the process group name afterwards by process group naming rules or manually in the UI.

Using the legacy builtin variables DT\_CLUSTER\_ID and DT\_NODE\_ID is not recommended and should be avoided. You should set up your own variables and rules instead.&nbsp;  
Using this approach, your operations them will be in charge of the process identification and it’s up to them to have it correctly.

---

<div class="post-metadata">

**Author:** ![AK](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/ak/32/164_2.png) [@AK](https://community.dynatrace.com/u/AK)\
**Post date:** [January 12, 2024, 4:03pm UTC](https://community.dynatrace.com/t/prevent-dynatrace-to-create-new-process-group-instance/43504/8 "2024-01-12T16:03:55Z")

</div>

[@Julius\_Loman](https://community.dynatrace.com/user/3364), thanks for the response.

Will hardware migration can cause new process group instance to be created because, team recently did Power 9 to Power 10 migration on hosts.

The query because, If you look at the original question that is posted, I just can see only command line argument changed between old instance and new instance.

Regards,

AK

---

<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:** [January 12, 2024, 5:00pm UTC](https://community.dynatrace.com/t/prevent-dynatrace-to-create-new-process-group-instance/43504/9 "2024-01-12T17:00:01Z")

</div>

[@AK](https://community.dynatrace.com/user/2080)&nbsp; command line arguments typically won’t have effect on it. Since you mention migration - any chance you have the hosts in different host groups (Power9 and Power10)? That is a common reason for a process group split and it is by design splitter. When your host group names won’t match, processes running on them are in separate process groups.

---

<div class="post-metadata">

**Author:** ![AK](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/ak/32/164_2.png) [@AK](https://community.dynatrace.com/u/AK)\
**Post date:** [January 17, 2024, 2:46pm UTC](https://community.dynatrace.com/t/prevent-dynatrace-to-create-new-process-group-instance/43504/10 "2024-01-17T14:46:25Z")

</div>

I don’t see any difference in the host group. The only difference I can see that is in command line argument.

Now, I have added the rule for process group extraction with the property that would remain constant throughout the process group instances. Technically this should work.

Thanks again&nbsp;[@Julius\_Loman](https://community.dynatrace.com/user/3364)&nbsp;for all the recommendations and inputs.

Regards,

AK

---

<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:** [January 17, 2024, 6:25pm UTC](https://community.dynatrace.com/t/prevent-dynatrace-to-create-new-process-group-instance/43504/11 "2024-01-17T18:25:04Z")

</div>

Well, it depends on the current setting of process group detection. Yes, command line arguments can be a reason if some rule matches.

Anyway, you always can look into the oneagent logs for the particular process (for example for java in the java directory) and after the process is started - there is info about how exactly the process group id and other ids have been&nbsp;calculated:

```markup
2023-11-30 14:18:37.156 UTC [001ad680] info [native] Process group ID ............ 0x8fa541213cab1187
2023-11-30 14:18:37.156 UTC [001ad680] info [native] PGID item ............... JAVA_JAR_FILE: "xxxx.jar" (ignored) (removedIds)
2023-11-30 14:18:37.156 UTC [001ad680] info [native] PGID item ............... SPRINGBOOT_STARTUP_CLASS: "xxxx.Application"
2023-11-30 14:18:37.156 UTC [001ad680] info [native] PGID item ............... EXE_NAME: "java" (ignored) (removedIds)
2023-11-30 14:18:37.156 UTC [001ad680] info [native] PGID item ............... HOST_GROUP: "xxx"
2023-11-30 14:18:37.156 UTC [001ad680] info [native] OSI ID ...................... 0xac0325fe2cc8184b
2023-11-30 14:18:37.156 UTC [001ad680] info [native] Node ID ..................... 0x0000000000000000
2023-11-30 14:18:37.156 UTC [001ad680] info [native] Node ID item ............ JAVA_JAR_PATH: "xxxxx.jar" (ignored) (removedIds)
2023-11-30 14:18:37.156 UTC [001ad680] info [native] Node ID item ............ EXE_PATH: "/usr/lib/jvm/java-*-openjdk-amd*/bin/java" (ignored) (removedIds)
2023-11-30 14:18:37.156 UTC [001ad680] info [native] Node ID item ............ COMMAND_LINE_ARGS: "/usr/bin/java -jar /xxxx.jar" (ignored)
2023-11-30 14:18:37.156 UTC [001ad680] info [native] Process group instance ID ... 0x23a664df106309cc
2023-11-30 14:18:37.156 UTC [001ad680] info [native] Container group ID .......... 0x0000000000000000
2023-11-30 14:18:37.156 UTC [001ad680] info [native] Container group instance ID . 0x254ba3d2a697aefb
2023-11-30 14:18:37.156 UTC [001ad680] info [native] Container ID ................

```
