Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-10362

"Memory Pool not found" error when reporting JVM metrics

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 6.5, 7.0
    • 6.6, 7.0
    • metrics
    • None

    Description

      These test failures are likely caused by a JVM bug. We should catch and work around it to be able report other existing metrics:

      https://jenkins.thetaphi.de/job/Lucene-Solr-6.x-Linux/3138/testReport/junit/org.apache.solr.handler.admin/MetricsHandlerTest/testCompact/
      
      java.lang.InternalError: Memory Pool not found
      	at __randomizedtesting.SeedInfo.seed([8F4813A324434093:A1485FF45CBE4A6C]:0)
      	at sun.management.MemoryPoolImpl.getUsage0(Native Method)
      	at sun.management.MemoryPoolImpl.getUsage(MemoryPoolImpl.java:96)
      	at com.codahale.metrics.jvm.MemoryUsageGaugeSet$18.getValue(MemoryUsageGaugeSet.java:177)
      	at com.codahale.metrics.jvm.MemoryUsageGaugeSet$18.getValue(MemoryUsageGaugeSet.java:174)
      	at org.apache.solr.util.stats.MetricUtils.convertGauge(MetricUtils.java:215)
      	at org.apache.solr.util.stats.MetricUtils.lambda$toMaps$4(MetricUtils.java:142)
      	at java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:184)
      	at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:175)
      	at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:175)
      	at java.util.TreeMap$KeySpliterator.forEachRemaining(TreeMap.java:2746)
      	at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481)
      	at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471)
      	at java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:151)
      	at java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:174)
      	at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
      	at java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:418)
      	at org.apache.solr.util.stats.MetricUtils.toMaps(MetricUtils.java:135)
      	at org.apache.solr.util.stats.MetricUtils.toNamedList(MetricUtils.java:117)
      	at org.apache.solr.handler.admin.MetricsHandler.handleRequestBody(MetricsHandler.java:85)
      	at org.apache.solr.handler.admin.MetricsHandlerTest.testCompact(MetricsHandlerTest.java:160)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      

      See here for a possible explanation (thanks Hoss!): https://bugs.openjdk.java.net/browse/JDK-8025089

      Attachments

        1. SOLR-10362.patch
          4 kB
          Andrzej Bialecki

        Activity

          People

            ab Andrzej Bialecki
            ab Andrzej Bialecki
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: