Command 'monitoring'

compared with
Key
This line was removed.
This word was removed. This word was added.
This line was added.

Changes (4)

View Page History
| Petals SE Activiti | [Database connection pool|#petals-se-activiti-database-connection-pool] | {{-o petals-se-activiti -f database-connection-pool}} |
| Petals SE Activiti | [Process definition counters|#petals-se-activiti-process-definition-counters] | {{-o petals-se-activiti -f process-definitions-count}} |
| Petals SE Flowable | [Asynchronous job executor thread pool|#petals-se-flowable-async-executor-thread-pool] | {{-o petals-se-flowable -f async-job-executor-thread-pool}} |
| Petals SE Flowable | [Database connection pool|#petals-se-flowable-database-connection-pool] | {{-o petals-se-flowable -f database-connection-pool}} |
| Petals SE Flowable | [Process definition counters|#petals-se-flowable-process-definition-counters] | {{-o petals-se-flowable -f process-definitions-count}} |
| Local transporter | [Delivered messages|#local-transporter-delivered-messages] | {{-o local-transporter -f delivered-messages}} |
| Remote transporter | [Outgoing connection pools|#remote-transporter-outgoing-connection-pool] | {{-o tcp-transporter -f outgoing-connections}} |
h4. {anchor:petals-se-activiti-process-definition-counters}Process definition counters

Coutners Counters about process definitions are available through the sub function '{{process-definitions-count}}' of the monitored object '{{petals-se-activiti}}'. It's usage is:
{code}
-n <component-name> [--list-process-definitions] | [--query-process-definitions [NAME] | [ACTIVE|SUSPENDED|ENDED <index>]] | [-t]

\\
'{{-t}}' displays a human readable table of all values about process definition coutners: counters:
{code}
> ./petals-cli.sh -h localhost -n 7700 -u petals -p petals -c -- monitoring -o petals-se-activiti -f process-definitions-count -- -n petals-se-activiti -t
{code}

h3. Petals SE Flowable

h4. {anchor:petals-se-flowable-async-executor-thread-pool}Asynchronous executor thread pool

Several metrics about the asynchronous executor thread pool of the Flowable engine are available through the sub function '{{async-job-executor-thread-pool}}' of the monitored object '{{petals-se-flowable}}'. It's usage is:
{code}
-n <component-name>
{code}
where '{{<component-name>}}' is the unique name of the Petals SE Flowable with which it was deployed.
Returned metrics are:
* {{ActiveThreadsMax}}, the maximum number of active threads,
* {{ActiveThreadsCurrent}}, the current number of active threads,
* {{IdleThreadsMax}}, the maximum number of idle threads,
* {{IdleThreadsCurrent}}, the current number of idle threads,
* {{MaxSize}}, the maximum size of the thread pool,
* {{MinSize}}, the minimum size of the thread pool,
* {{EnqueuedRequestsMax}}, the maximum number of requests that are enqueued waiting a thread to be processed,
* {{EnqueuedRequestsCurrent}}, the current number of requests that are enqueued waiting a thread to be processed.

{code}
> ./petals-cli.sh -h localhost -n 7700 -u petals -p petals -c -- monitoring -o petals-se-flowable -f async-job-executor-thread-pool -- -n petals-se-flowable
ActiveThreadsMax:0 ActiveThreadsCurrent:0 IdleThreadsMax:1 IdleThreadsCurrent:1 MaxSize:10 MinSize:2 EnqueuedRequestsMax:0 EnqueuedRequestsCurrent:0
{code}

h4. {anchor:petals-se-flowable-database-connection-pool}Database connection pool

Several metrics about the database connection pool of the Flowable engine are available through the sub function '{{database-connection-pool}}' of the monitored object '{{petals-se-flowable}}'. It's usage is:
{code}
-n <component-name>
{code}
where '{{<component-name>}}' is the unique name of the Petals SE Flowable with which it was deployed.
Returned metrics are:
* {{MaxActiveSize}}, the maximum number of active connections that the pool can accept currently,
* {{MaxIdleSize}}, the maximum number of idle connections that the pool can accept currently,
* {{ActiveConnectionsMax}}, the maximum number of active connections,
* {{ActiveConnectionsCurrent}}, the current number of active connections,
* {{IdleConnectionsMax}}, the maximum number of idle connections,
* {{IdleConnectionsCurrent}}, the current number of idle connections.

{code}
> ./petals-cli.sh -h localhost -n 7700 -u petals -p petals -c -- monitoring -o petals-se-flowable -f database-connection-pool -- -n petals-se-flowable
MaxActiveSize:10 MaxIdleSize:1 ActiveConnectionsMax:1 ActiveConnectionsCurrent:0 IdleConnectionsMax:1 IdleConnectionsCurrent:1
{code}

h4. {anchor:petals-se-flowable-process-definition-counters}Process definition counters

Counters about process definitions are available through the sub function '{{process-definitions-count}}' of the monitored object '{{petals-se-flowable}}'. It's usage is:
{code}
-n <component-name> [--list-process-definitions] | [--query-process-definitions [NAME] | [ACTIVE|SUSPENDED|ENDED <index>]] | [-t]
{code}
where '{{<component-name>}}' is the unique name of the Petals SE Flowable with which it was deployed.

\\
'{{--list-process-definitions}}' returns the list of all process definitions that are deployed on the Flowable engine in a logical point of view.
{code}
>./petals-cli.sh -h localhost -n 7700 -u petals -p petals -c -- monitoring -o petals-se-flowable -f process-definitions-count -- -n petals-se-flowable --list-process-definitions
vacationProcess
{code}

\\
'{{--query-process-definitions}}' returns query result about process definition:
|| Query argument || Description ||
| {{NAME}} | returns process-definition names by index. It is used to known which process definition is associated to index. The output format is: {{<index>!<process-definition>}}, one operation per line. |
| {{ACTIVE}} | returns the number of *active* process instances per process definition. The process definition is expressed by its index. The output format is: {{<index>!<value>}}, one process definition per line. If an index value is set on the command line, the output is limited to the provided index. |
| {{SUSPENDED}} | returns the number of *suspended* process instances per process definition. The process definition is expressed by its index. The output format is: {{<index>!<value>}}, one process definition per line. If an index value is set on the command line, the output is limited to the provided index. |
| {{ENDED}} | returns the number of *ended* process instances per process definition. The process definition is expressed by its index. The output format is: {{<index>!<value>}}, one process definition per line. If an index value is set on the command line, the output is limited to the provided index. |

{code}
>./petals-cli.sh -h localhost -n 7700 -u petals -p petals -c -- monitoring -o petals-se-flowable -f process-definitions-count -- -n petals-se-flowable --query-process-definitions ENDED
vacationProcess!639
{code}

\\
'{{-t}}' displays a human readable table of all values about process definition counters:
{code}
> ./petals-cli.sh -h localhost -n 7700 -u petals -p petals -c -- monitoring -o petals-se-flowable -f process-definitions-count -- -n petals-se-flowable -t
| Process definition || State | Active | Suspended | Ended |
------------------------------------------------------------
| vacationRequest || 0 | 0 | 0 | 4 |
{code}

h2. Petals Container