Skip to content
Mark edited this page Nov 19, 2016 · 3 revisions

Getting Started

Note that the local data dir, i.e. /tmp/kestrel must be empty, or only contain valid Kestrel data. To put a fine point on it, you can not simply specify your /tmp/ dir since all the junk in it will confuse Kestrel and cause it to die.

Also, you might want to expose the admin port (2223) for checking status:

docker run -p 22133:22133 -p 2223:2223 -v /tmp/kestrel:/data ...

$ curl -sS localhost:2223/stats.txt

counters:
  jvm_gc_PS_MarkSweep_cycles: 1
  jvm_gc_PS_MarkSweep_msec: 72
  jvm_gc_PS_Scavenge_cycles: 11
  jvm_gc_PS_Scavenge_msec: 130
  jvm_gc_cycles: 12
  jvm_gc_msec: 202
gauges:
  bytes: 0
  connections: 0
  items: 0
  jvm_fd_count: 52
  jvm_fd_limit: 1048576
  jvm_heap_committed: 81985536
  jvm_heap_max: 620756992
  jvm_heap_used: 44279496
  jvm_nonheap_committed: 38207488
  jvm_nonheap_max: 224395264
  jvm_nonheap_used: 37240432
  jvm_num_cpus: 2
  jvm_post_gc_PS_Eden_Space_max: 196804608
  jvm_post_gc_PS_Eden_Space_used: 0
  jvm_post_gc_PS_Old_Gen_max: 465567744
  jvm_post_gc_PS_Old_Gen_used: 14333592
  jvm_post_gc_PS_Perm_Gen_max: 174063616
  jvm_post_gc_PS_Perm_Gen_used: 17166032
  jvm_post_gc_PS_Survivor_Space_max: 16646144
  jvm_post_gc_PS_Survivor_Space_used: 16432488
  jvm_post_gc_used: 47932112
  jvm_start_time: 1479578740553
  jvm_thread_count: 15
  jvm_thread_daemon_count: 8
  jvm_thread_peak_count: 15
  jvm_uptime: 19146
  kestrel-memcache/connections: 0
  kestrel-memcache/pending: 0
  kestrel-text/connections: 0
  kestrel-text/pending: 0
  kestrel-thrift/connections: 0
  kestrel-thrift/pending: 0
  reserved_memory_ratio: 0
  status/readable: 1
  status/writeable: 1
labels:
  version: 2.4.2
metrics:
Clone this wiki locally