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

SystemInfoHandler does not expose all available info

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.6, 4.0-ALPHA
    • Fix Version/s: 3.6, 4.0-ALPHA
    • Component/s: None
    • Labels:
      None

      Description

      The following info is not returned even when they are available (on java 1.6 and 1.7):

      getSystemLoadAverage()
      getOpenFileDescriptorCount()
      getMaxFileDescriptorCount()
      getCommittedVirtualMemorySize()
      getTotalPhysicalMemorySize()
      getTotalSwapSpaceSize()
      getProcessCpuTime()
      

      This is happening because the following exception is thrown:

      java.lang.IllegalAccessException: Class org.apache.solr.handler.admin.SystemInfoHandler can not access a member of class com.sun.management.UnixOperatingSystem with modifiers "public native"
      

      It seems to be enough to call setAccessible(true) on the method to get rid of that exception.

      Additionally I see a strange value for the ulimit key:

      "ulimit":"(error executing: ulimit -n)",

        Attachments

          Activity

            People

            • Assignee:
              siren Sami Siren
              Reporter:
              siren Sami Siren
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: