services-cli commands

The following table describes the commands which are available when using the services-cli utility:

Command

Description

Usage

help

Displays the services available commands

help <COMMAND>

heap

Displays the java heap state of the running service

heap

pstack

Displays the stack trace of threads of the running service

pstack

diagl

Sets the logging level for the service at runtime. The logging level is reset when restarting the service.

The default command sets the root log level of the running process, but the log level can be set for a specific java class or a specific package, when specifying a full class name or full name parameters.

Log level values:

  • 1: ERROR
  • 2: WARN
  • 3: INFO
  • 4: DEBUG
  • 5: TRACE

diagl [-c <className>] [-p <packageName>] -l <logLevel>

NOTE:

  • -c: --class-name=<className>

    Set the logging level for specific class (full path to java class, case sensitive)

  • -l: -level, --level, --log-level=<logLevel>
  • -p: --package-name=<packageName>

    Set the logging level for the entire specified package (full path to package, case sensitive)

stop

Enables you to shut down the service immediately

stop

Parent Topic

services-cli