Nuxeo remote jmx monitoring on Linux

Now that Tomcat is the default Nuxeo distribution, I would recommend that page be updated with instructions regarding how to configure and use Nuxeo JMX monitoring. I opened JIRA issue NXDOC-155 to address this.

While attempting to configure remote JMX monitoring with the Linux Tomcat distribution, I encountered a need to set the “java.rmi.server.hostname” property to the server's external/public DNS name as follows:


This need is described here.

Since it is a common occurrence on Linux to have an internal DNS name that's different from the external/public DNS name, would it make sense to modify the bin/nuxeoctl script to calculate the server's external/public DNS name and set this property automatically? The HOST_FQDN could be calculated with code such as:

HOST_FQDN=$(hostname -f)
HOST_DNS=$(host $HOST_FQDN | grep "has address")
if [ $? -eq 0 ]; then
   # Use host from DNS
   HOST_FQDN=$(echo $HOST_DNS | awk '{ print $1 }')

Would it make sense to calculate and set the java.rmi.server.hostname property in nuxeoctl?

0 votes

1 answers



I think so. Here is the Jira issue: NXP-10021. Thanks.

0 votes