# IBM WebSphere Liberty Processes Splitting

**URL:** <https://community.dynatrace.com/t/ibm-websphere-liberty-processes-splitting/20175>\
**Category:** Open Q&A\
**Tags:** process-groups\
**Created:** [August 27, 2020, 9:49am UTC](https://community.dynatrace.com/t/ibm-websphere-liberty-processes-splitting/20175 "2020-08-27T09:49:20Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![Babar\_Qayyum](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/babar_qayyum/32/13620_2.png) [@Babar\_Qayyum](https://community.dynatrace.com/u/Babar_Qayyum)\
**Post date:** [August 27, 2020, 9:49am UTC](https://community.dynatrace.com/t/ibm-websphere-liberty-processes-splitting/20175/1 "2020-08-27T09:49:20Z")

</div>

Dear All,

The liberty process group detected as **ws-server.jar** , but we want to rename them with the process(s) name available in the command-line arguments.

How to achieve this?

Regards,

Babar

---

<div class="post-metadata">

**Author:** ![pahofmann](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/pahofmann/32/17076_2.png) [@pahofmann](https://community.dynatrace.com/u/pahofmann)\
**Post date:** [August 27, 2020, 10:11am UTC](https://community.dynatrace.com/t/ibm-websphere-liberty-processes-splitting/20175/2 "2020-08-27T10:11:53Z")

</div>

Create a Process group naming rule with the **{ProcessGroup:CommandLineArgs}** placeholder and add a regex to get the part you want as the name from the cli args.

You can add the regex like this: {ProcessGroup:CommandLineArgs\*\*/RegexToCaptureResult\*\*}

---

<div class="post-metadata">

**Author:** ![Babar\_Qayyum](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/babar_qayyum/32/13620_2.png) [@Babar\_Qayyum](https://community.dynatrace.com/u/Babar_Qayyum)\
**Post date:** [August 27, 2020, 10:23am UTC](https://community.dynatrace.com/t/ibm-websphere-liberty-processes-splitting/20175/3 "2020-08-27T10:23:51Z")

</div>

Hello [@Patrick H.](https://answers.dynatrace.com/users/11534/view.html)

I tried this, but it combines the processes of all hosts e.g. Process#1, Process#2, and so on, and shows in each host instead of the processes related to host. Even I tried to add a condition for a particular host.

Regards,

Babar

---

<div class="post-metadata">

**Author:** ![pahofmann](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/pahofmann/32/17076_2.png) [@pahofmann](https://community.dynatrace.com/u/pahofmann)\
**Post date:** [August 27, 2020, 10:56am UTC](https://community.dynatrace.com/t/ibm-websphere-liberty-processes-splitting/20175/4 "2020-08-27T10:56:16Z")

</div>

The naming rules will have no affect on the separation/splitting of a process group, that can only be done with process group detection rules.

So if the processes aren’t grouped correctly you should assign host group or create a process group detection rule first.

---

<div class="post-metadata">

**Author:** ![Babar\_Qayyum](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/babar_qayyum/32/13620_2.png) [@Babar\_Qayyum](https://community.dynatrace.com/u/Babar_Qayyum)\
**Post date:** [August 27, 2020, 11:32am UTC](https://community.dynatrace.com/t/ibm-websphere-liberty-processes-splitting/20175/5 "2020-08-27T11:32:46Z")

</div>

Hello [@Patrick H.](https://answers.dynatrace.com/users/11534/view.html)

I tried with the below configuration, but no luck. Did you see that the below configuration is correct or not?

 ![26258-1598527793375.png](https://global.discourse-cdn.com/dynatrace/original/3X/7/1/71f76ee92998a7373152503b6dcadce47581860d.png)

Regards,

Babar

---

<div class="post-metadata">

**Author:** ![sia\_h](https://avatars.discourse-cdn.com/v4/letter/s/f14d63/32.png) [@sia\_h](https://community.dynatrace.com/u/sia_h)\
**Post date:** [August 27, 2020, 1:07pm UTC](https://community.dynatrace.com/t/ibm-websphere-liberty-processes-splitting/20175/6 "2020-08-27T13:07:43Z")

</div>

Hi Babar,

You have to insert the values in the forms in line 4 of the configuration. The value you want to use for the Process Group Detection should be between the first delimiter and the end delimiter in line 4.

Please have a look at _Based on process properties_ in the following section:

> **[Process group detection](https://docs.dynatrace.com/docs/observe/infrastructure-observability/process-groups/configuration/pg-detection)**
>
> Ways to customize process-group detection

Best,

Sia

---

<div class="post-metadata">

**Author:** ![Babar\_Qayyum](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/babar_qayyum/32/13620_2.png) [@Babar\_Qayyum](https://community.dynatrace.com/u/Babar_Qayyum)\
**Post date:** [August 27, 2020, 1:56pm UTC](https://community.dynatrace.com/t/ibm-websphere-liberty-processes-splitting/20175/7 "2020-08-27T13:56:07Z")

</div>

Hello [@Siavash H.](https://answers.dynatrace.com/users/21890/view.html)

Thank you for your comments.

Do you mean the process/value starting from R (RXXX\_XXXXT) and finishing with T, should be mentioned R and T or I can use the full value name in between From and End?

Regards,

Babar

---

<div class="post-metadata">

**Author:** ![sia\_h](https://avatars.discourse-cdn.com/v4/letter/s/f14d63/32.png) [@sia\_h](https://community.dynatrace.com/u/sia_h)\
**Post date:** [August 27, 2020, 4:33pm UTC](https://community.dynatrace.com/t/ibm-websphere-liberty-processes-splitting/20175/8 "2020-08-27T16:33:30Z")

</div>

Hi Babar,

Take the following Command Line Args as an example:

![26248-1598545809369.png](https://global.discourse-cdn.com/dynatrace/original/3X/4/9/498417d7aca90350e005197613590b71cf74d377.png)

If we want to create a Process Groups based on the value easyTravel. We select “-DapplicationServer=” as the left delimiter and " -D" (don’t forget the space) as the right delimiter (excluding quotation marks).

Dynatrace will look for all Processes and any unique value between those delimiters will get it’s own Process Group.

If you have three Processes with ‘easyTravel’ as the value between those delimiters, then Dynatrace will create one Process Group with three Process Group instances.

Best,

Sia

---

<div class="post-metadata">

**Author:** ![Babar\_Qayyum](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/babar_qayyum/32/13620_2.png) [@Babar\_Qayyum](https://community.dynatrace.com/u/Babar_Qayyum)\
**Post date:** [August 30, 2020, 5:59am UTC](https://community.dynatrace.com/t/ibm-websphere-liberty-processes-splitting/20175/9 "2020-08-30T05:59:42Z")

</div>

Hello [@Siavash H.](https://answers.dynatrace.com/users/21890/view.html)

In my case, the required processes are at the end of the Java JAR path and then SPACE and then processes names e.g.

/opt/WebSphere/Liberty/bin/tools/ws-server.jar **RXXX\_XXX32XXX**

**Note** : Command-line args finish with the process names.

Regards,

Babar

---

<div class="post-metadata">

**Author:** ![sia\_h](https://avatars.discourse-cdn.com/v4/letter/s/f14d63/32.png) [@sia\_h](https://community.dynatrace.com/u/sia_h)\
**Post date:** [August 30, 2020, 12:41pm UTC](https://community.dynatrace.com/t/ibm-websphere-liberty-processes-splitting/20175/10 "2020-08-30T12:41:40Z")

</div>

Hi Babar,

Based on the (limited) information provided, I think this should work:

 ![26279-1598791382981.png](https://global.discourse-cdn.com/dynatrace/original/3X/2/1/217235df1776c85e11743aee5211b8e4fb6a11d4.png)

Please ensure that the Processes are restarted. Also ensure that the first delimiter form ends with a space as highlighted in blue in the image. If the _command line args_ simply end with the server name, you can keep the end delimiter empty.

Best,

Sia

---

<div class="post-metadata">

**Author:** ![Babar\_Qayyum](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/babar_qayyum/32/13620_2.png) [@Babar\_Qayyum](https://community.dynatrace.com/u/Babar_Qayyum)\
**Post date:** [August 30, 2020, 1:10pm UTC](https://community.dynatrace.com/t/ibm-websphere-liberty-processes-splitting/20175/11 "2020-08-30T13:10:19Z")

</div>

Hello [@Siavash H.](https://answers.dynatrace.com/users/21890/view.html)

I configured as suggested. Now once the processes will restart then I will share the feedback with you.

Regards,

Babar

---

<div class="post-metadata">

**Author:** ![Babar\_Qayyum](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/babar_qayyum/32/13620_2.png) [@Babar\_Qayyum](https://community.dynatrace.com/u/Babar_Qayyum)\
**Post date:** [September 22, 2020, 6:06am UTC](https://community.dynatrace.com/t/ibm-websphere-liberty-processes-splitting/20175/12 "2020-09-22T06:06:02Z")

</div>

Hello [@Siavash H.](https://answers.dynatrace.com/users/21890/view.html)

The given formula did not work for us.

Regards,

Babar
