Why a lesser number is returned by invoking the getInstanceCount or getInstanceCountByCommand method than it shows in the results of the getProcess method?

Why a lesser number is returned by invoking the getInstanceCount or getInstanceCountByCommand method than it shows in the results of the getProcess method?

book

Article ID: KB0094271

calendar_today

Updated On:

Products Versions
TIBCO Hawk -
Not Applicable -

Description

Resolution:
When using the Process:getProcess() method to monitor processes, it will return all of the processes including the child processes. However, the method Process:getInstanceCount() or Process:getInstanceCountByCommand() will consider the parent process and its child processes as one single instance. That is why the returned value is less than it shows in the result of the getProcess() method. This is by design.

Issue/Introduction

Why a lesser number is returned by invoking the getInstanceCount or getInstanceCountByCommand method than it shows in the results of the getProcess method?