Jämförda versioner

Nyckel

  • Dessa rader lades till.
  • Denna rad togs bort.
  • Formateringen ändrades.

Innehållsförteckning

VisualVM för att monitorera Mule

VisualVM är ett monitorerings och ett enklare profileringsverktyg med grafiskt stöd. Installationsanvisningar och dokumentation på http://visualvm.java.net/.

Image Added Image Added  


Innan uppkoppling med VisualVM behöver följande vara konfigurerat, Tillåta uppkoppling till Mule med JMX

...

För att kunna koppla upp sig mot Mule med JMX krävs följande.

Konfiguration av port och läsenord för uppkoppling

Anslut med följande information, där lösenordet är det som definierats i filen <MULE_HOME>/conf/jmx.password och port nr det som definierats i <MULE_HOME>/conf/wrapper.conf

Kodblock
wrapper.java.additional.4=-Dcom.sun.management.jmxremote.port=<port nr>
wrapper.java.additional.5=-Dcom.sun.management.jmxremote.password.file=%MULE_HOME%/conf/jmx.password
wrapper.java.additional.6=-Dcom.sun.management.jmxremote.ssl=false

 

Skapa filen %MULE_HOME%.

Host name: Adress/host till den server där Mule finns installerad

Connectionservice:jmx:rmi://<host>:<port nr>/jndi/rmi://<host>:<port nr>/jmxrmi
username: controlRole
password: <some password>

JConsole för att monitorera Mule

JConsole är ett monitorerings och ett enklare profileringsverktyg med grafiskt stöd. Installationsanvisningar och dokumentation på http://docs.oracle.com/javase/7/docs/technotes/guides/management/jconsole.html.

Image Added Image Added


Innan uppkoppling med JConesole behöver följande vara konfigurerat, Tillåta uppkoppling till Mule med JMX.

Anslut med följande information, där lösenordet är det som definierats i filen <MULE_HOME>/conf/jmx.password enligt nedan och sätt lösenord.

Kodblock
##############################################################
#    File permissions of the jmxremote.password file
##############################################################
#      Since there are cleartext passwords stored in this file,
#      this file must be readable by ONLY the owner,
#      otherwise the program will exit with an error.
#
# The file format for password and access files is syntactically the same
# as the Properties file format.  The syntax is described in the Javadoc
# for java.util.Properties.load.
# Typical password file has multiple  lines, where each line is blank,
# a comment (like this one), or a password entry.
#
#
# A password entry consists of a role name and an associated
# password.  The role name is any string that does not itself contain
# spaces or tabs.  The password is again any string that does not
# contain spaces or tabs.  Note that passwords appear in the clear in
# this file, so it is a good idea not to use valuable passwords.
#
# A given role should have at most one entry in this file.  If a role
# has no entry, it has no access.
# If multiple entries are found for the same role name, then the last one
# is used.
#
# In a typical installation, this file can be read by anybody on the
# local machine, and possibly by people on other machines.
# For # security, you should either restrict the access to this file,
# or specify another, less accessible file in the management config file
# as described above.
#
monitorRole <some password>
controlRole <some password>

 

Filen skall endast ha rättigheter att kunna läsas av användaren, inga andra rättigheter, för att Mule skall starta. Detta kan man på linux åstadkomma med följande.

Kodblock
$chmod 400 jmx.password

 

 

http://www.mulesoft.org/documentation/display/current/JMX+Managementoch port nr det som definierats i <MULE_HOME>/conf/wrapper.conf.

Remote process: service:jmx:rmi://<host>:<port nr>/jndi/rmi://<host>:<port nr>/jmxrmi
username: controlRole
password: <some password>