gcstats — GC 통계 출력

gcstats — GC 통계 출력

nodetool gcstats 명령은 GC(가비지 컬렉션) 통계를 출력하는 명령이에요.

출처: nodetool gcstats

본문

gcstats는 JVM 가비지 컬렉션 상태를 확인할 때 써요. GC가 너무 자주 일어나거나 지연이 길어지면 클러스터에 부정적인 영향(특히 토큰 점프/중단)을 줄 수 있으므로 모니터링이 중요해요. 아래는 완전한 사용법이에요.

NAME
        nodetool gcstats - Print GC Statistics

SYNOPSIS
        nodetool [(-h <host> | --host <host>)] [(-p <port> | --port <port>)]
                [(-pp | --print-port)] [(-pw <password> | --password <password>)]
                [(-pwf <passwordFilePath> | --password-file <passwordFilePath>)]
                [(-u <username> | --username <username>)] gcstats

OPTIONS
        -h <host>, --host <host>
            Node hostname or ip address

        -p <port>, --port <port>
            Remote jmx agent port number

        -pp, --print-port
            Operate in 4.0 mode with hosts disambiguated by port number

        -pw <password>, --password <password>
            Remote jmx agent password

        -pwf <passwordFilePath>, --password-file <passwordFilePath>
            Path to the JMX password file

        -u <username>, --username <username>
            Remote jmx agent username

더 알아보기 (Learn more)