[
https://issues.apache.org/jira/browse/SOLR-4526?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13592581#comment-13592581
]
Shawn Heisey commented on SOLR-4526:
------------------------------------
I think perhaps I was a little too aggressive in framing this issue. I should
have scaled it back a little bit to focus on the UI issue, not the java
classes. The title may need changing, and it may require filing another issue.
I see two problems. With OpenJDK, the file descriptor info and the JVM memory
info are not showing on the dashboard. Side note: I don't have OpenJDK running
anywhere and don't have unallocated hardware I can fiddle with right now.
The underlying issue is that the user says the file descriptor info is not
found in /admin/system output running under OpenJDK, but it is there under
Apple or Oracle JVMs. If the info is available at all from OpenJDK, it may
require a code change to get it.
The java issue is triggering a javascript issue. An educated guess is that the
code that populates the file descriptor bar is failing and causing the JVM
memory bar calculation (JVM memory info is available in /admin/system) to be
skipped entirely. A simple fix for that issue would be to re-order the
javascript code so that jvm memory is done before the file descriptor. A
better fix would be to make sure that a nonexistent piece of information
doesn't cause problems.
I'm very weak in both javascript and java reflection, or I would have already
tried to come up with patches.
> Admin UI dependence on UnixOperationSystemMXBean
> ------------------------------------------------
>
> Key: SOLR-4526
> URL: https://issues.apache.org/jira/browse/SOLR-4526
> Project: Solr
> Issue Type: Bug
> Components: web gui
> Affects Versions: 4.1
> Environment: Oracle Corporation OpenJDK 64-Bit Server VM (1.7.0_15
> 23.7-b01)
> Reporter: Shawn Heisey
>
> A user on IRC was having trouble getting file descriptor counts and JVM
> memory usage in the admin UI, but it worked perfectly fine on another system.
> The problem system uses OpenJDK, the other one uses the Apple JDK. The user
> had tracked it down to an exception while trying to get open file descriptor
> info.
> Looking in the SystemInfoHandler.java file, I see a comment reference to
> com.sun.management.UnixOperatingSystemMXBean at the point where it is getting
> file descriptor info. A little extra searching turned up ZOOKEEPER-1579
> which refers to HBASE-6945, the same problem with OpenJDK.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]