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

SystemInfoHandler does not expose all available info

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 3.6, 4.0-ALPHA
    • 3.6, 4.0-ALPHA
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: