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] |
| 11 | 'ssh' -p <port> <host> 'gerrit show-caches' |
| 12 | |
| 13 | DESCRIPTION |
| 14 | ----------- |
| 15 | Display statistics about the size and hit ratio of in-memory caches. |
| 16 | |
| 17 | ACCESS |
| 18 | ------ |
Shawn O. Pearce | 7f48514 | 2011-06-16 13:49:42 -0700 | [diff] [blame] | 19 | Caller must be a member of the privileged 'Administrators' group, |
| 20 | or have been granted the 'View Caches' global capability. |
Shawn O. Pearce | 4016a93 | 2009-05-28 15:12:40 -0700 | [diff] [blame] | 21 | |
| 22 | SCRIPTING |
| 23 | --------- |
| 24 | Intended for interactive use only. |
| 25 | |
| 26 | EXAMPLES |
| 27 | -------- |
| 28 | |
| 29 | ==== |
| 30 | $ ssh -p 29418 review.example.com gerrit show-caches |
Shawn O. Pearce | 3d8ef10 | 2009-11-02 10:39:31 -0800 | [diff] [blame] | 31 | Name Max |Object Count | AvgGet |Hit Ratio | |
| 32 | Age | Disk Mem Cnt| |Disk Mem Agg | |
| 33 | -------------------------+--------------------+----------+--------------+ |
| 34 | accounts 90d | 295| | 99%| |
| 35 | accounts_byemail 90d | 109| | 97%| |
| 36 | D diff 90d | 2695 128 2707| 0.4ms | 11% 86% 98%| |
| 37 | groups 90d | 94| | 80%| |
| 38 | openid 5m | 30| 0.4ms | 9%| |
| 39 | projects 90d | 188| | 99%| |
| 40 | sshkeys 90d | 9| | 94%| |
| 41 | D web_sessions 12h | 30 30| | 0% 99% 99%| |
Shawn O. Pearce | d607846 | 2009-11-02 10:37:01 -0800 | [diff] [blame] | 42 | |
Shawn O. Pearce | 4016a93 | 2009-05-28 15:12:40 -0700 | [diff] [blame] | 43 | JGit Buffer Cache: |
Shawn O. Pearce | 3d8ef10 | 2009-11-02 10:39:31 -0800 | [diff] [blame] | 44 | open files : 23 |
| 45 | loaded : 6.82 mb |
| 46 | mem% : 2% |
Shawn O. Pearce | d607846 | 2009-11-02 10:37:01 -0800 | [diff] [blame] | 47 | |
Shawn O. Pearce | 4016a93 | 2009-05-28 15:12:40 -0700 | [diff] [blame] | 48 | JVM Heap: |
| 49 | max : 880.00 mb |
Shawn O. Pearce | 3d8ef10 | 2009-11-02 10:39:31 -0800 | [diff] [blame] | 50 | inuse : 136.57 mb |
| 51 | mem% : 44% |
Shawn O. Pearce | 4016a93 | 2009-05-28 15:12:40 -0700 | [diff] [blame] | 52 | ==== |
| 53 | |
| 54 | SEE ALSO |
| 55 | -------- |
| 56 | |
| 57 | * link:cmd-flush-caches.html[gerrit flush-caches] |
Shawn O. Pearce | 8efb2a7 | 2009-08-18 19:45:33 -0700 | [diff] [blame] | 58 | * link:config-gerrit.html#cache[Cache Configuration] |
Shawn O. Pearce | 4016a93 | 2009-05-28 15:12:40 -0700 | [diff] [blame] | 59 | * link:config-gerrit.html#cache_names[Standard Caches] |
Shawn O. Pearce | 5500e69 | 2009-05-28 15:55:01 -0700 | [diff] [blame] | 60 | |
| 61 | GERRIT |
| 62 | ------ |
| 63 | Part of link:index.html[Gerrit Code Review] |