Expand | ||||||
---|---|---|---|---|---|---|
| ||||||
|
To connect Fiorano server using JConsole, below are the steps on a high level:
- Open server.conf, fes.conf or fps.conf (whichever is applicable according to the script being used to run the server) and add the JVM argument "com.sun.management.jmxremote" under the java.system.props section.
- Start the server, start JConsole using JDK_HOME/bin/JConsole
To connect JConsole to server process, in the Advanced tab, specify the URL service:jmx:rmi:///jndi/rmi://localhost:2047/fmq and credentials pertaining to the server.
Note Default user name and password are admin and passwd erespectively.
Anchor | ||||
---|---|---|---|---|
|
To connect to the FES/FPS using JConsole Fiorano10, perform the following actions:
Add the following values under <java.system.props> in the file $FIORANO_HOME/esb/server/bin/server.conf
Code Block com.sun.management.jmxremote com.sun.management.jmxremote.port=<somePortNumber> com.sun.management.jmxremote.authenticate=false com.sun.management.jmxremote.ssl=false
If JDK version 7 is to be used to launch the server, remove/comment the line '../../../extlib/mx4j' in server.conf file.
Info To comment a line, it should start with #. That is, the commented line will be '#../../../extlib/mx4j'.
- Start the server and copy $FIORANO_HOME/framework/lib/fiorano-rmi-client.jar to $JDK_HOME/bin
Create a file called 'policy.pol' under $JDK_HOME/bin and paste the following content in it:
Code Block grant { permission java.security.AllPermission "", ""; };
Go to $JDK_HOME/bin and type the following command:
Code Block title Windows jconsole -J-Djava.security.policy=policy.pol -J-Djava.security.manager-J- Djava.rmi.server.codebase=file:///fiorano-rmi-client.jar J Djava.class.path=..\lib\tools.jar;..\lib\jconsole.jar;.\fiorano-rmi-client.jar
Code Block title Unix j jconsole -J-Djava.security.policy=policy.pol -J-Djava.security.manager-J-Djava.rmi.server.codebase=file:///fiorano-rmi-client.jar-J-Djava.class.path=../lib/tools.jar:../lib/jconsole.jar:./fiorano-rmi-client.jar
- As the JConsole starts, click the Advanced tab and provide values for the attributes:
JMX URL: service:jmx:rmi://<IpAddressOfServer>/jndi/rmi://<IpAddressOfServer>:<rmiConnectorPortOfServer>/fmq
Tip RMIConnector port is printed on server console.
- UserName: A valid user name, default being 'admin'
- Password: Password for the above user name, default being 'passwd' for admin user
Figure 1: Providing JMX URL and its credentials
- Press Connect.
Anchor | ||||
---|---|---|---|---|
|
Using the steps mentioned in previous section, you will not be able to launch more than one server on same machine using server.bat/sh files.
In order to launch more than one server on same machine, perform the following actions:
Create copies of server.conf and server.bat/sh files and rename them as 'server1.conf' and 'server1.bat/sh'.
Note These .conf and .bat/sh files can be renamed to any name, but both these files should have same name.
- Provide some other port number under server1.conf file for the property 'com.sun.management.jmxremote.port=<somePortNumber>'.
By this server1.bat/sh can be used to launch the second server. For example, the command 'server1.sh -profile profile2 -mode fps' can be used to launch the second server.