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.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s