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

I finally have a resolution for my case — big thanks to @MiguelKlosinski from Dynatrace Support! :slightly_smiling_face:

Here is the summary:

1. Process Group Naming Rule - 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. Advanced Detection Rule - 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:  my_jar-test-123
PI-1: my_jar-test-123 (1234)
PI-2: my_jar-test-123 (1235)

…

Hope this helps anyone facing a similar issue! :rocket: