blob: d42650822a5e832e1cea5124271a8da05baf6a8c [file] [log] [blame]
Shawn O. Pearce4016a932009-05-28 15:12:40 -07001gerrit show-caches
2===================
3
4NAME
5----
6gerrit show-caches - Display current cache statistics
7
8SYNOPSIS
9--------
10[verse]
Shawn O. Pearce2b4cd952011-06-21 10:07:13 -070011'ssh' -p <port> <host> 'gerrit show-caches' [--gc] [--show-jvm]
Shawn O. Pearce4016a932009-05-28 15:12:40 -070012
13DESCRIPTION
14-----------
15Display statistics about the size and hit ratio of in-memory caches.
16
Shawn O. Pearce2b4cd952011-06-21 10:07:13 -070017OPTIONS
18-------
19--gc::
20 Request Java garbage collection before displaying information
21 about the Java memory heap.
22
23--show-jvm::
24 List the name and version of the Java virtual machine, host
25 operating system, and other details about the environment
26 that Gerrit Code Review is running in.
27
Doug Kelly6599d772013-06-11 01:36:31 -050028--width::
29-w::
30 Width of the output table.
31
Shawn O. Pearce4016a932009-05-28 15:12:40 -070032ACCESS
33------
Shawn O. Pearce7f485142011-06-16 13:49:42 -070034Caller must be a member of the privileged 'Administrators' group,
Fredrik Luthander9c7da662012-03-13 17:49:27 +010035or have been granted
Edwin Kempin87c84652012-03-26 13:23:12 +020036link:access-control.html#capability_viewCaches[the 'View Caches' global capability].
Shawn O. Pearce4016a932009-05-28 15:12:40 -070037
38SCRIPTING
39---------
40Intended for interactive use only.
41
42EXAMPLES
43--------
44
45====
46 $ ssh -p 29418 review.example.com gerrit show-caches
Shawn O. Pearce2b4cd952011-06-21 10:07:13 -070047 Gerrit Code Review 2.2.2 now 10:03:34 PDT
48 uptime 1 min 39 sec
49
Shawn O. Pearce3d8ef102009-11-02 10:39:31 -080050 Name Max |Object Count | AvgGet |Hit Ratio |
51 Age | Disk Mem Cnt| |Disk Mem Agg |
52 -------------------------+--------------------+----------+--------------+
Shawn O. Pearce2b4cd952011-06-21 10:07:13 -070053 accounts 90d | 1| | 95%|
54 accounts_byemail 90d | | | |
55 accounts_byname 90d | 1| | |
56 adv_bases 10m | | | |
57 D diff 90d | 8 8| | |
58 D diff_intraline 90d | 1 1| | |
59 groups 90d | 19| | 0%|
60 groups_byext 90d | | | |
61 groups_byinclude 90d | 21| | 80%|
62 groups_byname 90d | | | |
63 groups_byuuid 90d | | | |
64 project_list 90d | | | |
65 projects 90d | 1| | 80%|
66 sshkeys 90d | 1| | 90%|
67 D web_sessions 12h | | | |
68
69 SSH: 1 users, oldest session started 782 ms ago
70 Tasks: 2 total = 1 running + 0 ready + 1 sleeping
71 Mem: 46.13m total = 16.17m used + 29.96m free + 0.00k buffers
72 246.56m max
73 0 open files, 6 cpus available, 23 threads
Shawn O. Pearce4016a932009-05-28 15:12:40 -070074====
75
76SEE ALSO
77--------
78
79* link:cmd-flush-caches.html[gerrit flush-caches]
Shawn O. Pearce8efb2a72009-08-18 19:45:33 -070080* link:config-gerrit.html#cache[Cache Configuration]
Shawn O. Pearce4016a932009-05-28 15:12:40 -070081* link:config-gerrit.html#cache_names[Standard Caches]
Shawn O. Pearce5500e692009-05-28 15:55:01 -070082
83GERRIT
84------
85Part of link:index.html[Gerrit Code Review]