Shawn O. Pearce | 4016a93 | 2009-05-28 15:12:40 -0700 | [diff] [blame] | 1 | gerrit show-caches |
| 2 | =================== |
| 3 | |
| 4 | NAME |
| 5 | ---- |
| 6 | gerrit show-caches - Display current cache statistics |
| 7 | |
| 8 | SYNOPSIS |
| 9 | -------- |
| 10 | [verse] |
Shawn O. Pearce | 2b4cd95 | 2011-06-21 10:07:13 -0700 | [diff] [blame] | 11 | 'ssh' -p <port> <host> 'gerrit show-caches' [--gc] [--show-jvm] |
Shawn O. Pearce | 4016a93 | 2009-05-28 15:12:40 -0700 | [diff] [blame] | 12 | |
| 13 | DESCRIPTION |
| 14 | ----------- |
| 15 | Display statistics about the size and hit ratio of in-memory caches. |
| 16 | |
Shawn O. Pearce | 2b4cd95 | 2011-06-21 10:07:13 -0700 | [diff] [blame] | 17 | OPTIONS |
| 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 Kelly | 6599d77 | 2013-06-11 01:36:31 -0500 | [diff] [blame] | 28 | --width:: |
| 29 | -w:: |
| 30 | Width of the output table. |
| 31 | |
Shawn O. Pearce | 4016a93 | 2009-05-28 15:12:40 -0700 | [diff] [blame] | 32 | ACCESS |
| 33 | ------ |
Shawn O. Pearce | 7f48514 | 2011-06-16 13:49:42 -0700 | [diff] [blame] | 34 | Caller must be a member of the privileged 'Administrators' group, |
Fredrik Luthander | 9c7da66 | 2012-03-13 17:49:27 +0100 | [diff] [blame] | 35 | or have been granted |
Edwin Kempin | 87c8465 | 2012-03-26 13:23:12 +0200 | [diff] [blame] | 36 | link:access-control.html#capability_viewCaches[the 'View Caches' global capability]. |
Shawn O. Pearce | 4016a93 | 2009-05-28 15:12:40 -0700 | [diff] [blame] | 37 | |
| 38 | SCRIPTING |
| 39 | --------- |
| 40 | Intended for interactive use only. |
| 41 | |
| 42 | EXAMPLES |
| 43 | -------- |
| 44 | |
| 45 | ==== |
| 46 | $ ssh -p 29418 review.example.com gerrit show-caches |
Shawn O. Pearce | 2b4cd95 | 2011-06-21 10:07:13 -0700 | [diff] [blame] | 47 | Gerrit Code Review 2.2.2 now 10:03:34 PDT |
| 48 | uptime 1 min 39 sec |
| 49 | |
Shawn O. Pearce | 3d8ef10 | 2009-11-02 10:39:31 -0800 | [diff] [blame] | 50 | Name Max |Object Count | AvgGet |Hit Ratio | |
| 51 | Age | Disk Mem Cnt| |Disk Mem Agg | |
| 52 | -------------------------+--------------------+----------+--------------+ |
Shawn O. Pearce | 2b4cd95 | 2011-06-21 10:07:13 -0700 | [diff] [blame] | 53 | 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. Pearce | 4016a93 | 2009-05-28 15:12:40 -0700 | [diff] [blame] | 74 | ==== |
| 75 | |
| 76 | SEE ALSO |
| 77 | -------- |
| 78 | |
| 79 | * link:cmd-flush-caches.html[gerrit flush-caches] |
Shawn O. Pearce | 8efb2a7 | 2009-08-18 19:45:33 -0700 | [diff] [blame] | 80 | * link:config-gerrit.html#cache[Cache Configuration] |
Shawn O. Pearce | 4016a93 | 2009-05-28 15:12:40 -0700 | [diff] [blame] | 81 | * link:config-gerrit.html#cache_names[Standard Caches] |
Shawn O. Pearce | 5500e69 | 2009-05-28 15:55:01 -0700 | [diff] [blame] | 82 | |
| 83 | GERRIT |
| 84 | ------ |
| 85 | Part of link:index.html[Gerrit Code Review] |