lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sami Siren (Created) (JIRA)" <j...@apache.org>
Subject [jira] [Created] (SOLR-3148) SystemInfoHandler does not expose all available info
Date Mon, 20 Feb 2012 21:15:34 GMT
SystemInfoHandler does not expose all available info
----------------------------------------------------

                 Key: SOLR-3148
                 URL: https://issues.apache.org/jira/browse/SOLR-3148
             Project: Solr
          Issue Type: Bug
    Affects Versions: 4.0
            Reporter: Sami Siren
            Priority: Minor


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

{code}
getSystemLoadAverage()
getOpenFileDescriptorCount()
getMaxFileDescriptorCount()
getCommittedVirtualMemorySize()
getTotalPhysicalMemorySize()
getTotalSwapSpaceSize()
getProcessCpuTime()
{code}

This is happening because the following exception is thrown: 

{code}
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"
{code}

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)",

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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


Mime
View raw message