You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Shalin Shekhar Mangar (JIRA)" <ji...@apache.org> on 2016/11/29 20:44:58 UTC

[jira] [Updated] (SOLR-9805) Use metrics-jvm library to instrument jvm internals

     [ https://issues.apache.org/jira/browse/SOLR-9805?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Shalin Shekhar Mangar updated SOLR-9805:
----------------------------------------
    Attachment: SOLR-9805.patch

Patch which applies to the features/metrics branch. We add all jvm metric sets from metrics-jvm library to a shared metric registry named "/jvm". Following are the metrics collected:
{code}
{
  "version" : "3.0.0",
  "gauges" : {
    "ConcurrentMarkSweep.count" : {
      "value" : 0
    },
    "ConcurrentMarkSweep.time" : {
      "value" : 6
    },
    "ParNew.count" : {
      "value" : 1
    },
    "ParNew.time" : {
      "value" : 10
    },
    "blocked.count" : {
      "value" : 0
    },
    "count" : {
      "value" : 21
    },
    "daemon.count" : {
      "value" : 7
    },
    "deadlock.count" : {
      "value" : 0
    },
    "deadlocks" : {
      "value" : [ ]
    },
    "direct.capacity" : {
      "value" : 57344
    },
    "direct.count" : {
      "value" : 4
    },
    "direct.used" : {
      "value" : 57344
    },
    "fileDescriptorRatio" : {
      "value" : 0.0037841796875
    },
    "heap.committed" : {
      "value" : 514523136
    },
    "heap.init" : {
      "value" : 536870912
    },
    "heap.max" : {
      "value" : 514523136
    },
    "heap.usage" : {
      "value" : 0.07437098416503471
    },
    "heap.used" : {
      "value" : 38265592
    },
    "loaded" : {
      "value" : 4179
    },
    "mapped.capacity" : {
      "value" : 0
    },
    "mapped.count" : {
      "value" : 0
    },
    "mapped.used" : {
      "value" : 0
    },
    "new.count" : {
      "value" : 0
    },
    "non-heap.committed" : {
      "value" : 34381824
    },
    "non-heap.init" : {
      "value" : 2555904
    },
    "non-heap.max" : {
      "value" : -1
    },
    "non-heap.usage" : {
      "value" : -3.3637024E7
    },
    "non-heap.used" : {
      "value" : 33637024
    },
    "pools.CMS-Old-Gen.committed" : {
      "value" : 402653184
    },
    "pools.CMS-Old-Gen.init" : {
      "value" : 402653184
    },
    "pools.CMS-Old-Gen.max" : {
      "value" : 402653184
    },
    "pools.CMS-Old-Gen.usage" : {
      "value" : 0.0
    },
    "pools.CMS-Old-Gen.used" : {
      "value" : 0
    },
    "pools.Code-Cache.committed" : {
      "value" : 6160384
    },
    "pools.Code-Cache.init" : {
      "value" : 2555904
    },
    "pools.Code-Cache.max" : {
      "value" : 251658240
    },
    "pools.Code-Cache.usage" : {
      "value" : 0.024188232421875
    },
    "pools.Code-Cache.used" : {
      "value" : 6087872
    },
    "pools.Compressed-Class-Space.committed" : {
      "value" : 3092480
    },
    "pools.Compressed-Class-Space.init" : {
      "value" : 0
    },
    "pools.Compressed-Class-Space.max" : {
      "value" : 1073741824
    },
    "pools.Compressed-Class-Space.usage" : {
      "value" : 0.0027397125959396362
    },
    "pools.Compressed-Class-Space.used" : {
      "value" : 2941744
    },
    "pools.Metaspace.committed" : {
      "value" : 25128960
    },
    "pools.Metaspace.init" : {
      "value" : 0
    },
    "pools.Metaspace.max" : {
      "value" : -1
    },
    "pools.Metaspace.usage" : {
      "value" : 0.9796426115525673
    },
    "pools.Metaspace.used" : {
      "value" : 24617400
    },
    "pools.Par-Eden-Space.committed" : {
      "value" : 89522176
    },
    "pools.Par-Eden-Space.init" : {
      "value" : 89522176
    },
    "pools.Par-Eden-Space.max" : {
      "value" : 89522176
    },
    "pools.Par-Eden-Space.usage" : {
      "value" : 0.2822161963534041
    },
    "pools.Par-Eden-Space.used" : {
      "value" : 25264608
    },
    "pools.Par-Survivor-Space.committed" : {
      "value" : 22347776
    },
    "pools.Par-Survivor-Space.init" : {
      "value" : 22347776
    },
    "pools.Par-Survivor-Space.max" : {
      "value" : 22347776
    },
    "pools.Par-Survivor-Space.usage" : {
      "value" : 0.581757397246151
    },
    "pools.Par-Survivor-Space.used" : {
      "value" : 13000984
    },
    "runnable.count" : {
      "value" : 9
    },
    "terminated.count" : {
      "value" : 0
    },
    "timed_waiting.count" : {
      "value" : 9
    },
    "total.committed" : {
      "value" : 548904960
    },
    "total.init" : {
      "value" : 539426816
    },
    "total.max" : {
      "value" : 514523135
    },
    "total.used" : {
      "value" : 71930344
    },
    "unloaded" : {
      "value" : 0
    },
    "waiting.count" : {
      "value" : 3
    }
  },
  "counters" : { },
  "histograms" : { },
  "meters" : { },
  "timers" : { }
}
{code}

Since the /admin/metrics endpoint is constrained to show only one metric registry at a time, it does not show the JVM metrics. I'll fix the metrics API in a separate issue.

> Use metrics-jvm library to instrument jvm internals
> ---------------------------------------------------
>
>                 Key: SOLR-9805
>                 URL: https://issues.apache.org/jira/browse/SOLR-9805
>             Project: Solr
>          Issue Type: New Feature
>      Security Level: Public(Default Security Level. Issues are Public) 
>            Reporter: Shalin Shekhar Mangar
>            Assignee: Shalin Shekhar Mangar
>             Fix For: master (7.0), 6.4
>
>         Attachments: SOLR-9805.patch
>
>   Original Estimate: 24h
>  Remaining Estimate: 24h
>
> See http://metrics.dropwizard.io/3.1.0/manual/jvm/



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org