Michael Ochmann | 7185d24 | 2016-07-08 11:28:31 +0200 | [diff] [blame] | 1 | = gerrit show-caches |
Shawn O. Pearce | 4016a93 | 2009-05-28 15:12:40 -0700 | [diff] [blame] | 2 | |
Yuxuan 'fishy' Wang | 61698b1 | 2013-12-20 12:55:51 -0800 | [diff] [blame] | 3 | == NAME |
David Shevitz | c47f236 | 2018-09-27 10:55:35 -0700 | [diff] [blame] | 4 | gerrit show-caches - Display current cache statistics. |
Shawn O. Pearce | 4016a93 | 2009-05-28 15:12:40 -0700 | [diff] [blame] | 5 | |
Yuxuan 'fishy' Wang | 61698b1 | 2013-12-20 12:55:51 -0800 | [diff] [blame] | 6 | == SYNOPSIS |
Michael Ochmann | e2d76a1 | 2016-06-23 17:07:37 +0200 | [diff] [blame] | 7 | [verse] |
Yuxuan 'fishy' Wang | d85b687 | 2013-11-15 11:47:46 -0800 | [diff] [blame] | 8 | -- |
Michael Ochmann | e2d76a1 | 2016-06-23 17:07:37 +0200 | [diff] [blame] | 9 | _ssh_ -p <port> <host> _gerrit show-caches_ |
| 10 | [--gc] |
| 11 | [--show-jvm] |
Yuxuan 'fishy' Wang | d85b687 | 2013-11-15 11:47:46 -0800 | [diff] [blame] | 12 | -- |
Shawn O. Pearce | 4016a93 | 2009-05-28 15:12:40 -0700 | [diff] [blame] | 13 | |
Yuxuan 'fishy' Wang | 61698b1 | 2013-12-20 12:55:51 -0800 | [diff] [blame] | 14 | == DESCRIPTION |
Shawn O. Pearce | 4016a93 | 2009-05-28 15:12:40 -0700 | [diff] [blame] | 15 | Display statistics about the size and hit ratio of in-memory caches. |
| 16 | |
Yuxuan 'fishy' Wang | 61698b1 | 2013-12-20 12:55:51 -0800 | [diff] [blame] | 17 | == OPTIONS |
Shawn O. Pearce | 2b4cd95 | 2011-06-21 10:07:13 -0700 | [diff] [blame] | 18 | --gc:: |
| 19 | Request Java garbage collection before displaying information |
| 20 | about the Java memory heap. |
| 21 | |
| 22 | --show-jvm:: |
| 23 | List the name and version of the Java virtual machine, host |
| 24 | operating system, and other details about the environment |
| 25 | that Gerrit Code Review is running in. |
| 26 | |
Saša Živkov | 96468eb | 2014-06-06 15:02:09 +0200 | [diff] [blame] | 27 | --show-threads:: |
| 28 | Show detailed counts for Gerrit specific threads. |
| 29 | |
Doug Kelly | 6599d77 | 2013-06-11 01:36:31 -0500 | [diff] [blame] | 30 | --width:: |
| 31 | -w:: |
| 32 | Width of the output table. |
| 33 | |
Yuxuan 'fishy' Wang | 61698b1 | 2013-12-20 12:55:51 -0800 | [diff] [blame] | 34 | == ACCESS |
Dave Borowitz | 664d040 | 2015-06-11 15:35:48 -0400 | [diff] [blame] | 35 | The caller must be a member of a group that is granted one of the |
| 36 | following capabilities: |
| 37 | |
| 38 | * link:access-control.html#capability_viewCaches[View Caches] |
| 39 | * link:access-control.html#capability_maintainServer[Maintain Server] |
| 40 | * link:access-control.html#capability_administrateServer[Administrate Server] |
Edwin Kempin | 4279d4b | 2014-06-30 16:21:28 +0200 | [diff] [blame] | 41 | |
| 42 | The summary information about SSH, threads, tasks, memory and JVM are |
| 43 | only printed out if the caller is a member of a group that is granted |
| 44 | the link:access-control.html#capability_administrateServer[Administrate |
Dave Borowitz | 664d040 | 2015-06-11 15:35:48 -0400 | [diff] [blame] | 45 | Server] or link:access-control.html#capability_maintainServer[Maintain |
Edwin Kempin | 4279d4b | 2014-06-30 16:21:28 +0200 | [diff] [blame] | 46 | Server] capability. |
Shawn O. Pearce | 4016a93 | 2009-05-28 15:12:40 -0700 | [diff] [blame] | 47 | |
Yuxuan 'fishy' Wang | 61698b1 | 2013-12-20 12:55:51 -0800 | [diff] [blame] | 48 | == SCRIPTING |
Shawn O. Pearce | 4016a93 | 2009-05-28 15:12:40 -0700 | [diff] [blame] | 49 | Intended for interactive use only. |
| 50 | |
Yuxuan 'fishy' Wang | 61698b1 | 2013-12-20 12:55:51 -0800 | [diff] [blame] | 51 | == EXAMPLES |
Shawn O. Pearce | 4016a93 | 2009-05-28 15:12:40 -0700 | [diff] [blame] | 52 | |
Michael Ochmann | b99feab | 2016-07-06 14:10:22 +0200 | [diff] [blame] | 53 | ---- |
David Shevitz | c47f236 | 2018-09-27 10:55:35 -0700 | [diff] [blame] | 54 | $ ssh -p 29418 review.example.com gerrit show-caches |
| 55 | Gerrit Code Review 2.9 now 11:14:13 CEST |
| 56 | uptime 6 days 20 hrs |
| 57 | Name |Entries | AvgGet |Hit Ratio| |
| 58 | | Mem Disk Space| |Mem Disk| |
| 59 | --------------------------------+---------------------+---------+---------+ |
| 60 | accounts | 4096 | 3.4ms | 99% | |
| 61 | adv_bases | | | | |
| 62 | changes | | 27.1ms | 0% | |
| 63 | groups | 5646 | 11.8ms | 97% | |
| 64 | groups_bymember | | | | |
| 65 | groups_byname | | | | |
| 66 | groups_bysubgroup | 230 | 2.4ms | 62% | |
| 67 | groups_byuuid | 5612 | 29.2ms | 99% | |
| 68 | groups_external | 1 | 1.5s | 98% | |
| 69 | ldap_group_existence | | | | |
| 70 | ldap_groups | 650 | 680.5ms | 99% | |
| 71 | ldap_groups_byinclude | 1024 | | 83% | |
| 72 | ldap_usernames | 390 | 3.8ms | 81% | |
| 73 | permission_sort | 16384 | | 99% | |
| 74 | plugin_resources | | | | |
| 75 | project_list | 1 | 3.8s | 99% | |
| 76 | projects | 6477 | 2.9ms | 99% | |
| 77 | sshkeys | 2048 | 12.5ms | 99% | |
| 78 | D diff | 1299 62033 132.36m| 22.0ms | 85% 99%| |
| 79 | D diff_intraline | 12777 218651 128.45m| 171.1ms | 31% 96%| |
| 80 | D git_tags | 3 6 11.85k| | 0% 100%| |
| 81 | D web_sessions | 1024 151714 59.10m| | 99% 57%| |
Edwin Kempin | 2eb9310 | 2014-05-23 11:22:00 +0200 | [diff] [blame] | 82 | |
David Shevitz | c47f236 | 2018-09-27 10:55:35 -0700 | [diff] [blame] | 83 | SSH: 385 users, oldest session started 6 days 20 hrs ago |
| 84 | Tasks: 10 total = 6 running + 0 ready + 4 sleeping |
| 85 | Mem: 14.94g total = 3.04g used + 11.89g free + 10.00m buffers |
| 86 | 28.44g max |
| 87 | 107 open files |
Edwin Kempin | 8b77818 | 2014-06-24 14:07:05 +0200 | [diff] [blame] | 88 | |
David Shevitz | c47f236 | 2018-09-27 10:55:35 -0700 | [diff] [blame] | 89 | Threads: 4 CPUs available, 371 threads |
Michael Ochmann | b99feab | 2016-07-06 14:10:22 +0200 | [diff] [blame] | 90 | ---- |
Shawn O. Pearce | 4016a93 | 2009-05-28 15:12:40 -0700 | [diff] [blame] | 91 | |
Yuxuan 'fishy' Wang | 61698b1 | 2013-12-20 12:55:51 -0800 | [diff] [blame] | 92 | == SEE ALSO |
Shawn O. Pearce | 4016a93 | 2009-05-28 15:12:40 -0700 | [diff] [blame] | 93 | |
| 94 | * link:cmd-flush-caches.html[gerrit flush-caches] |
Shawn O. Pearce | 8efb2a7 | 2009-08-18 19:45:33 -0700 | [diff] [blame] | 95 | * link:config-gerrit.html#cache[Cache Configuration] |
Shawn O. Pearce | 4016a93 | 2009-05-28 15:12:40 -0700 | [diff] [blame] | 96 | * link:config-gerrit.html#cache_names[Standard Caches] |
Shawn O. Pearce | 5500e69 | 2009-05-28 15:55:01 -0700 | [diff] [blame] | 97 | |
| 98 | GERRIT |
| 99 | ------ |
| 100 | Part of link:index.html[Gerrit Code Review] |
Yuxuan 'fishy' Wang | 99cb68d | 2013-10-31 17:26:00 -0700 | [diff] [blame] | 101 | |
| 102 | SEARCHBOX |
| 103 | --------- |