How to ensure a probe has a unique name in Diagnostics

When multiple instances of a probe are started, there is a way to uniquely identify the probe from the application startup script

In Diagnostics patch D7.50.150.26 and later it is possible to ensure each probe gets started with a unique name by adding the string %0 to the probe name. This can be added either to the ID in the probe.properties, for example:

id=myProbe%0

Or it can be added in the start command line, for example:

-Dprobe.id=myProbe%0

The %0 will get replaced dynamically with a number, the first being 0, and then incremented for subsequent probes. So in the above example the first probe will start with an ID of myProbe0, the second with myProbe1 and so on.

Leave a Comment