cancel
Showing results for 
Search instead for 
Did you mean: 

Nuxeo remote jmx monitoring on Linux

ron_1
Star Contributor
Star Contributor

Now that Tomcat is the default Nuxeo distribution, I would recommend that page http://doc.nuxeo.com/display/ADMINDOC/Monitoring 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:

-Djava.rmi.server.hostname=your.public.dns

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 }')
fi

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

1 ACCEPTED ANSWER

Julien_Carsique
Elite Collaborator
Elite Collaborator

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

View answer in original post

1 REPLY 1

Julien_Carsique
Elite Collaborator
Elite Collaborator

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

Getting started

Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.