Overview of gmon
Definition
gmon is a database (gmaster) process monitoring utility provided by GOLDILOCKS.
Features
gmon monitors whether database process (gmaster) is operated, and when the process is abnormally terminated, not by user's SHUTDOWN, then it executes gsyncher and terminates the process. It intends to reduce the loss of logs by executing gsyncher.
gmon can be set to be automatically operated by setting the server property GMON_AUTOSTART to 1, or a user can directly executes gmon.
A single gmaster process can monitor only one gmon process.
Usage
gmon [options]
Options
-s --start Start gmon -t --stop Stop gmon -u --status Get gmon status -o --home gmaster home path -l --silent Suppress display message -r --no-copyright Suppress display copy right and version -h --help Print help messages
Examples
Example 1: Execute gmon by using the default path ($GOLDILOCKS_DATA).
$ gmon --start gmon is started.
Example 2: Execute gmon by specifying home path. When a relative path is used, home path is specified based on $GOLDILOCKS_DATA.
$ gmon --start --home g1n1_home gmon is started.
Example 3: Execute gmon by specifying home path as an absolute path. When an absolute path is used, the specified path is specified as a home path.
$ gmon --start --home /g1n1_home gmon is started.
Example 4: Check the status of gmon process.
$ gmon --status --home /g1n1_home gmon is running(19119).
Example 5: Terminate the gmon process.
$ gmon --stop --home /g1n1_home gmon is stopped.