<commit_before>gerrit show-caches
===================

== NAME
gerrit show-caches - Display current cache statistics

== SYNOPSIS
--
'ssh' -p <port> <host> 'gerrit show-caches' [--gc] [--show-jvm]
--

== DESCRIPTION
Display statistics about the size and hit ratio of in-memory caches.

== OPTIONS
--gc::
	Request Java garbage collection before displaying information
	about the Java memory heap.

--show-jvm::
	List the name and version of the Java virtual machine, host
	operating system, and other details about the environment
	that Gerrit Code Review is running in.

--width::
-w::
	Width of the output table.

== ACCESS
Caller must be a member of the privileged 'Administrators' group,
or have been granted
link:access-control.html#capability_viewCaches[the 'View Caches' global capability].

== SCRIPTING
Intended for interactive use only.

== EXAMPLES

====
	$ ssh -p 29418 review.example.com gerrit show-caches
	Gerrit Code Review        2.2.2                     now    10:03:34   PDT
	                                                 uptime     1 min 39 sec
	
	  Name               Max |Object Count        |  AvgGet  |Hit Ratio     |
	                     Age |  Disk    Mem    Cnt|          |Disk Mem  Agg |
	-------------------------+--------------------+----------+--------------+
	  accounts           90d |                   1|          |           95%|
	  accounts_byemail   90d |                    |          |              |
	  accounts_byname    90d |                   1|          |              |
	  adv_bases          10m |                    |          |              |
	D diff               90d |     8             8|          |              |
	D diff_intraline     90d |     1             1|          |              |
	  groups             90d |                  19|          |            0%|
	  groups_byext       90d |                    |          |              |
	  groups_byinclude   90d |                  21|          |           80%|
	  groups_byname      90d |                    |          |              |
	  groups_byuuid      90d |                    |          |              |
	  project_list       90d |                    |          |              |
	  projects           90d |                   1|          |           80%|
	  sshkeys            90d |                   1|          |           90%|
	D web_sessions       12h |                    |          |              |
	
	SSH:      1  users, oldest session started 782 ms ago
	Tasks:    2  total =    1 running +      0 ready +    1 sleeping
	Mem:  46.13m total =  16.17m used +  29.96m free +   0.00k buffers
	     246.56m max
	           0 open files,        6 cpus available,       23 threads
====

== SEE ALSO

* link:cmd-flush-caches.html[gerrit flush-caches]
* link:config-gerrit.html#cache[Cache Configuration]
* link:config-gerrit.html#cache_names[Standard Caches]

GERRIT
------
Part of link:index.html[Gerrit Code Review]

SEARCHBOX
---------<commit_msg>Documentation: Update example output of show-caches SSH command<commit_after>gerrit show-caches
===================

== NAME
gerrit show-caches - Display current cache statistics

== SYNOPSIS
--
'ssh' -p <port> <host> 'gerrit show-caches' [--gc] [--show-jvm]
--

== DESCRIPTION
Display statistics about the size and hit ratio of in-memory caches.

== OPTIONS
--gc::
	Request Java garbage collection before displaying information
	about the Java memory heap.

--show-jvm::
	List the name and version of the Java virtual machine, host
	operating system, and other details about the environment
	that Gerrit Code Review is running in.

--width::
-w::
	Width of the output table.

== ACCESS
Caller must be a member of the privileged 'Administrators' group,
or have been granted
link:access-control.html#capability_viewCaches[the 'View Caches' global capability].

== SCRIPTING
Intended for interactive use only.

== EXAMPLES

====
  $ ssh -p 29418 review.example.com gerrit show-caches
  Gerrit Code Review        2.9                       now   11:14:13   CEST
                                                   uptime    6 days 20 hrs
    Name                          |Entries              |  AvgGet |Hit Ratio|
                                  |   Mem   Disk   Space|         |Mem  Disk|
  --------------------------------+---------------------+---------+---------+
    accounts                      |  4096               |   3.4ms | 99%     |
    accounts_byemail              |  1024               |   7.6ms | 98%     |
    accounts_byname               |  4096               |  11.3ms | 99%     |
    adv_bases                     |                     |         |         |
    changes                       |                     |  27.1ms |  0%     |
    groups                        |  5646               |  11.8ms | 97%     |
    groups_byinclude              |   230               |   2.4ms | 62%     |
    groups_byname                 |                     |         |         |
    groups_byuuid                 |  5612               |  29.2ms | 99%     |
    groups_external               |     1               |   1.5s  | 98%     |
    groups_members                |  5714               |  19.7ms | 99%     |
    ldap_group_existence          |                     |         |         |
    ldap_groups                   |   650               | 680.5ms | 99%     |
    ldap_groups_byinclude         |  1024               |         | 83%     |
    ldap_usernames                |   390               |   3.8ms | 81%     |
    permission_sort               | 16384               |         | 99%     |
    plugin_resources              |                     |         |         |
    project_list                  |     1               |   3.8s  | 99%     |
    projects                      |  6477               |   2.9ms | 99%     |
    sshkeys                       |  2048               |  12.5ms | 99%     |
  D diff                          |  1299  62033 132.36m|  22.0ms | 85%  99%|
  D diff_intraline                | 12777 218651 128.45m| 171.1ms | 31%  96%|
  D git_tags                      |     3      6  11.85k|         |  0% 100%|
  D web_sessions                  |  1024 151714  59.10m|         | 99%  57%|

  SSH:    385  users, oldest session started    6 days 20 hrs ago
  Tasks:   10  total =    6 running +      0 ready +    4 sleeping
  Mem:  14.94g total =   3.04g used +  11.89g free +  10.00m buffers
        28.44g max
           107 open files,        4 cpus available,      371 threads
====

== SEE ALSO

* link:cmd-flush-caches.html[gerrit flush-caches]
* link:config-gerrit.html#cache[Cache Configuration]
* link:config-gerrit.html#cache_names[Standard Caches]

GERRIT
------
Part of link:index.html[Gerrit Code Review]

SEARCHBOX
---------
{'fraction_non_alphanumeric': 0.10665086653829062, 'fraction_numerical': 0.05110354021626426, 'mean_word_length': 1.0591643793839585, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 56, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6064217', 'n_tokens_mistral': 2145, 'n_tokens_neox': 1851, 'n_words': 526}