Quantcast
Channel: THWACK: Message List
Viewing all articles
Browse latest Browse all 20607

Re: Monitoring Glassfish via JMX: "Cannot connect to JMX server"?

$
0
0

Have you tried connecting to the Glassfish server remotely from the Orion server using jconsole? The GlassFish template you're referencing is assumes you are using the default Glassfish JMX port of 8686, yet in the above text you're configuring the GlassFish JMX port to use 6800. Have you modified the Glassfish template to utilize port 6800? Can you connect to the Glassfish server using the Component Monitor Wizard?

 

Configuring GlassFish (tested on version 3.1):

 

1.

 

Run the GlassFish Application Server.

2.

 

Open a web browser and then navigate to: http://hostname:4848, where hostname is the name of your GlassFish server.

3.

 

In the left panel, click Configurations: server-config.

4.

 

In the main window, click JVM settings.

5.

 

Click the JVM Options tab.

6.

 

Click Add JVM Option and then type -Djava.rmi.server.hostname=yourhostname.com in the blank field, where yourhostname.com is the hostname of your GlassFish server.

7.

 

Click Add JVM Option and then type -Dcom.sun.management.jmxremote.ssl=false in the blank field.

8.

 

Click Add JVM Option and then type -Dcom.sun.management.jmxremote.authenticate=false in the blank field.

9.

 

Click Save.

10.

 

Restart the GlassFish server.

 

By default, GlassFish uses JMX on port 8686. To change the JMX port you should find the “jmx-connector” section in: %GLASSFISH_HOME%\glassfish\domains\<your_domain>\config\domain.xml, where %GLASSFISH_HOME% is the path where GlassFish is installed, then change the port value.

For more information, see "JMX".


Viewing all articles
Browse latest Browse all 20607

Trending Articles