nodetool gcstats
Where is the cassandra-env.sh
file?
The location of the cassandra-env.sh
file depends on the type of installation:
Installation Type | Location |
---|---|
Package installations + Installer-Services installations |
|
Tarball installations + Installer-No Services installations |
|
Print garbage collection (GC) statistics.
Synopsis
nodetool [options] gcstats
Tarball and Installer No-Services path:
<installation_location>/resources/cassandra/bin
Short | Long | Description |
---|---|---|
|
|
Hostname or IP address. |
|
|
Port number. |
|
|
Password file path. |
|
|
Password. |
|
|
Remote JMX agent username. |
|
Separates an option from an argument that could be mistaken for an option. |
|
Description
The nodetool gcstats
command will print garbage collection statistics that returns values based on all the garbage collection that has run since the last time nodetool gcstats
was run.
Statistics identify the interval time, some GC elapsed time measures, the disk space reclaimed (in megabytes (MB)), number of garbage collections that took place, and direct memory bytes.
Examples
$ nodetool -u username -pw password gcstats