# How to split Java processes with the same JAR name but different command-line arguments into separate process groups

**URL:** <https://community.dynatrace.com/t/how-to-split-java-processes-with-the-same-jar-name-but-different-command-line-arguments-into-separate-process-groups/53823>\
**Category:** Open Q&A\
**Tags:** process-groups\
**Created:** [October 22, 2025, 12:03pm UTC](https://community.dynatrace.com/t/how-to-split-java-processes-with-the-same-jar-name-but-different-command-line-arguments-into-separate-process-groups/53823 "2025-10-22T12:03:02Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![deni](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/deni/32/163_2.png) [@deni](https://community.dynatrace.com/u/deni)\
**Post date:** [October 29, 2025, 5:15pm UTC](https://community.dynatrace.com/t/how-to-split-java-processes-with-the-same-jar-name-but-different-command-line-arguments-into-separate-process-groups/53823/6 "2025-10-29T17:15:59Z")

</div>

I finally have a resolution for my case — big thanks to [@MiguelKlosinski](https://community.dynatrace.com/user/60421)&nbsp;from Dynatrace Support! 🙂

Here is the summary:

1.&nbsp; **Process Group Naming Rule** -&nbsp;This rule runs _ **after** _ process groups (PGs) are created. It can be used to **rename existing PGs only**. It **cannot** be used to split process instances (PIs) into different PGs.

2.&nbsp; **Advanced Detection Rule** -&nbsp;My initial mistake was leaving **“Ignore numbers”** enabled while my pattern included digits. After disabling it, PG detection worked as expected.  
Next, we configured **Process instance extraction** so each PI has a unique name. This is a very important step - otherwise every PI goes into its own group, even if the extracted names are identical! We used an unique CMD parameter (the port) to differentiate instances.

Result now looks like this:

PG:&nbsp;&nbsp;my\_jar-test-123  
PI-1:&nbsp;my\_jar-test-123 (1234)  
PI-2: my\_jar-test-123 (1235)

…

Hope this helps anyone facing a similar issue! 🚀

---

_[View the full topic](https://community.dynatrace.com/t/how-to-split-java-processes-with-the-same-jar-name-but-different-command-line-arguments-into-separate-process-groups/53823)._
