blob: 59abc1c584dffd8674f1114b6fb14bee970fe026 [file] [log] [blame]
Michael Ochmann7185d242016-07-08 11:28:31 +02001= gerrit show-caches
Shawn O. Pearce4016a932009-05-28 15:12:40 -07002
Yuxuan 'fishy' Wang61698b12013-12-20 12:55:51 -08003== NAME
Shawn O. Pearce4016a932009-05-28 15:12:40 -07004gerrit show-caches - Display current cache statistics
5
Yuxuan 'fishy' Wang61698b12013-12-20 12:55:51 -08006== SYNOPSIS
Michael Ochmanne2d76a12016-06-23 17:07:37 +02007[verse]
Yuxuan 'fishy' Wangd85b6872013-11-15 11:47:46 -08008--
Michael Ochmanne2d76a12016-06-23 17:07:37 +02009_ssh_ -p <port> <host> _gerrit show-caches_
10 [--gc]
11 [--show-jvm]
Yuxuan 'fishy' Wangd85b6872013-11-15 11:47:46 -080012--
Shawn O. Pearce4016a932009-05-28 15:12:40 -070013
Yuxuan 'fishy' Wang61698b12013-12-20 12:55:51 -080014== DESCRIPTION
Shawn O. Pearce4016a932009-05-28 15:12:40 -070015Display statistics about the size and hit ratio of in-memory caches.
16
Yuxuan 'fishy' Wang61698b12013-12-20 12:55:51 -080017== OPTIONS
Shawn O. Pearce2b4cd952011-06-21 10:07:13 -070018--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 Živkov96468eb2014-06-06 15:02:09 +020027--show-threads::
28 Show detailed counts for Gerrit specific threads.
29
Doug Kelly6599d772013-06-11 01:36:31 -050030--width::
31-w::
32 Width of the output table.
33
Yuxuan 'fishy' Wang61698b12013-12-20 12:55:51 -080034== ACCESS
Dave Borowitz664d0402015-06-11 15:35:48 -040035The caller must be a member of a group that is granted one of the
36following 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 Kempin4279d4b2014-06-30 16:21:28 +020041
42The summary information about SSH, threads, tasks, memory and JVM are
43only printed out if the caller is a member of a group that is granted
44the link:access-control.html#capability_administrateServer[Administrate
Dave Borowitz664d0402015-06-11 15:35:48 -040045Server] or link:access-control.html#capability_maintainServer[Maintain
Edwin Kempin4279d4b2014-06-30 16:21:28 +020046Server] capability.
Shawn O. Pearce4016a932009-05-28 15:12:40 -070047
Yuxuan 'fishy' Wang61698b12013-12-20 12:55:51 -080048== SCRIPTING
Shawn O. Pearce4016a932009-05-28 15:12:40 -070049Intended for interactive use only.
50
Yuxuan 'fishy' Wang61698b12013-12-20 12:55:51 -080051== EXAMPLES
Shawn O. Pearce4016a932009-05-28 15:12:40 -070052
Michael Ochmannb99feab2016-07-06 14:10:22 +020053----
Edwin Kempin2eb93102014-05-23 11:22:00 +020054 $ 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 accounts_byemail | 1024 | 7.6ms | 98% |
62 accounts_byname | 4096 | 11.3ms | 99% |
63 adv_bases | | | |
64 changes | | 27.1ms | 0% |
65 groups | 5646 | 11.8ms | 97% |
66 groups_byinclude | 230 | 2.4ms | 62% |
67 groups_byname | | | |
68 groups_byuuid | 5612 | 29.2ms | 99% |
69 groups_external | 1 | 1.5s | 98% |
70 groups_members | 5714 | 19.7ms | 99% |
71 ldap_group_existence | | | |
72 ldap_groups | 650 | 680.5ms | 99% |
73 ldap_groups_byinclude | 1024 | | 83% |
74 ldap_usernames | 390 | 3.8ms | 81% |
75 permission_sort | 16384 | | 99% |
76 plugin_resources | | | |
77 project_list | 1 | 3.8s | 99% |
78 projects | 6477 | 2.9ms | 99% |
79 sshkeys | 2048 | 12.5ms | 99% |
80 D diff | 1299 62033 132.36m| 22.0ms | 85% 99%|
81 D diff_intraline | 12777 218651 128.45m| 171.1ms | 31% 96%|
82 D git_tags | 3 6 11.85k| | 0% 100%|
83 D web_sessions | 1024 151714 59.10m| | 99% 57%|
84
85 SSH: 385 users, oldest session started 6 days 20 hrs ago
86 Tasks: 10 total = 6 running + 0 ready + 4 sleeping
87 Mem: 14.94g total = 3.04g used + 11.89g free + 10.00m buffers
88 28.44g max
Edwin Kempin8b778182014-06-24 14:07:05 +020089 107 open files
90
91 Threads: 4 CPUs available, 371 threads
Michael Ochmannb99feab2016-07-06 14:10:22 +020092----
Shawn O. Pearce4016a932009-05-28 15:12:40 -070093
Yuxuan 'fishy' Wang61698b12013-12-20 12:55:51 -080094== SEE ALSO
Shawn O. Pearce4016a932009-05-28 15:12:40 -070095
96* link:cmd-flush-caches.html[gerrit flush-caches]
Shawn O. Pearce8efb2a72009-08-18 19:45:33 -070097* link:config-gerrit.html#cache[Cache Configuration]
Shawn O. Pearce4016a932009-05-28 15:12:40 -070098* link:config-gerrit.html#cache_names[Standard Caches]
Shawn O. Pearce5500e692009-05-28 15:55:01 -070099
100GERRIT
101------
102Part of link:index.html[Gerrit Code Review]
Yuxuan 'fishy' Wang99cb68d2013-10-31 17:26:00 -0700103
104SEARCHBOX
105---------