blob: dd79d8b976f077713af46074b90cfb0c7565dea4 [file] [log] [blame]
Shawn O. Pearce4016a932009-05-28 15:12:40 -07001gerrit show-caches
2===================
3
Yuxuan 'fishy' Wang61698b12013-12-20 12:55:51 -08004== NAME
Shawn O. Pearce4016a932009-05-28 15:12:40 -07005gerrit show-caches - Display current cache statistics
6
Yuxuan 'fishy' Wang61698b12013-12-20 12:55:51 -08007== SYNOPSIS
Yuxuan 'fishy' Wangd85b6872013-11-15 11:47:46 -08008--
Shawn O. Pearce2b4cd952011-06-21 10:07:13 -07009'ssh' -p <port> <host> 'gerrit show-caches' [--gc] [--show-jvm]
Yuxuan 'fishy' Wangd85b6872013-11-15 11:47:46 -080010--
Shawn O. Pearce4016a932009-05-28 15:12:40 -070011
Yuxuan 'fishy' Wang61698b12013-12-20 12:55:51 -080012== DESCRIPTION
Shawn O. Pearce4016a932009-05-28 15:12:40 -070013Display statistics about the size and hit ratio of in-memory caches.
14
Yuxuan 'fishy' Wang61698b12013-12-20 12:55:51 -080015== OPTIONS
Shawn O. Pearce2b4cd952011-06-21 10:07:13 -070016--gc::
17 Request Java garbage collection before displaying information
18 about the Java memory heap.
19
20--show-jvm::
21 List the name and version of the Java virtual machine, host
22 operating system, and other details about the environment
23 that Gerrit Code Review is running in.
24
Saša Živkov96468eb2014-06-06 15:02:09 +020025--show-threads::
26 Show detailed counts for Gerrit specific threads.
27
Doug Kelly6599d772013-06-11 01:36:31 -050028--width::
29-w::
30 Width of the output table.
31
Yuxuan 'fishy' Wang61698b12013-12-20 12:55:51 -080032== ACCESS
Edwin Kempin4279d4b2014-06-30 16:21:28 +020033The caller must be a member of a group that is granted the
34link:access-control.html#capability_viewCaches[View Caches] capability
35or the link:access-control.html#capability_administrateServer[
36Administrate Server] capability.
37
38The summary information about SSH, threads, tasks, memory and JVM are
39only printed out if the caller is a member of a group that is granted
40the link:access-control.html#capability_administrateServer[Administrate
41Server] capability.
Shawn O. Pearce4016a932009-05-28 15:12:40 -070042
Yuxuan 'fishy' Wang61698b12013-12-20 12:55:51 -080043== SCRIPTING
Shawn O. Pearce4016a932009-05-28 15:12:40 -070044Intended for interactive use only.
45
Yuxuan 'fishy' Wang61698b12013-12-20 12:55:51 -080046== EXAMPLES
Shawn O. Pearce4016a932009-05-28 15:12:40 -070047
48====
Edwin Kempin2eb93102014-05-23 11:22:00 +020049 $ ssh -p 29418 review.example.com gerrit show-caches
50 Gerrit Code Review 2.9 now 11:14:13 CEST
51 uptime 6 days 20 hrs
52 Name |Entries | AvgGet |Hit Ratio|
53 | Mem Disk Space| |Mem Disk|
54 --------------------------------+---------------------+---------+---------+
55 accounts | 4096 | 3.4ms | 99% |
56 accounts_byemail | 1024 | 7.6ms | 98% |
57 accounts_byname | 4096 | 11.3ms | 99% |
58 adv_bases | | | |
59 changes | | 27.1ms | 0% |
60 groups | 5646 | 11.8ms | 97% |
61 groups_byinclude | 230 | 2.4ms | 62% |
62 groups_byname | | | |
63 groups_byuuid | 5612 | 29.2ms | 99% |
64 groups_external | 1 | 1.5s | 98% |
65 groups_members | 5714 | 19.7ms | 99% |
66 ldap_group_existence | | | |
67 ldap_groups | 650 | 680.5ms | 99% |
68 ldap_groups_byinclude | 1024 | | 83% |
69 ldap_usernames | 390 | 3.8ms | 81% |
70 permission_sort | 16384 | | 99% |
71 plugin_resources | | | |
72 project_list | 1 | 3.8s | 99% |
73 projects | 6477 | 2.9ms | 99% |
74 sshkeys | 2048 | 12.5ms | 99% |
75 D diff | 1299 62033 132.36m| 22.0ms | 85% 99%|
76 D diff_intraline | 12777 218651 128.45m| 171.1ms | 31% 96%|
77 D git_tags | 3 6 11.85k| | 0% 100%|
78 D web_sessions | 1024 151714 59.10m| | 99% 57%|
79
80 SSH: 385 users, oldest session started 6 days 20 hrs ago
81 Tasks: 10 total = 6 running + 0 ready + 4 sleeping
82 Mem: 14.94g total = 3.04g used + 11.89g free + 10.00m buffers
83 28.44g max
Edwin Kempin8b778182014-06-24 14:07:05 +020084 107 open files
85
86 Threads: 4 CPUs available, 371 threads
Shawn O. Pearce4016a932009-05-28 15:12:40 -070087====
88
Yuxuan 'fishy' Wang61698b12013-12-20 12:55:51 -080089== SEE ALSO
Shawn O. Pearce4016a932009-05-28 15:12:40 -070090
91* link:cmd-flush-caches.html[gerrit flush-caches]
Shawn O. Pearce8efb2a72009-08-18 19:45:33 -070092* link:config-gerrit.html#cache[Cache Configuration]
Shawn O. Pearce4016a932009-05-28 15:12:40 -070093* link:config-gerrit.html#cache_names[Standard Caches]
Shawn O. Pearce5500e692009-05-28 15:55:01 -070094
95GERRIT
96------
97Part of link:index.html[Gerrit Code Review]
Yuxuan 'fishy' Wang99cb68d2013-10-31 17:26:00 -070098
99SEARCHBOX
100---------