gmon

gmon 소개

정의

gmon은 GOLDILOCKS가 제공하는 데이터베이스(gmaster) 프로세스 감지 유틸리티이다.

기능

gmon은 데이터베이스 프로세스 (gmaster)의 동작 여부를 모니터링하다가 해당 프로세스가 관리자의 SHUTDOWN에 의해 종료되지 않고 비정상적으로 종료되면 gsyncher를 실행하고 종료한다. 이는 gsyncher를 실행하여 log 손실을 최대한 줄이기 위함이다.

gmon은 서버 프로퍼티 GMON_AUTOSTART를 1로 설정하여 자동 실행되도록 하거나 사용자가 직접 실행할 수 있다.

하나의 gmaster 프로세스는 하나의 gmon 프로세스만 감지할 수 있다.

사용법

gmon [options]

Option

-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

사용 예

$ 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.