gmon

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
-d  --uds_dir      unix domain socket directory
-l  --silent       Suppress display message 
-r  --no-copyright Suppress display copy right and version
-h  --help         Print help messages

start

It starts gmon.

stop

It stops gmon.

status

It checks the status of gmon process.

home

It is the database home directory. If it is omitted, then it uses the value set in GOLDILOCKS_DATA environment variable.

uds_dir

It sets the directory in which unix domain socket is created. The maximum length of the directory is 50 bytes. The default value is /tmp.

silent

It does not output the result message.

no-copyright

It does not output copyright and version.

help

It outputs the help message.

Examples

$ gmon --start

gmon is started.
$ gmon --start --home g1n1_home

gmon is started.
$ gmon --start --home /g1n1_home

gmon is started.
$ gmon --status --home /g1n1_home

gmon is running(19119).
$ gmon --stop --home /g1n1_home

gmon is stopped.