Consultor Eletrônico



Kbase P162839: How can I view the memory statistics of an NameServer using JConsole?
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   31/03/2010
Status: Unverified

GOAL:

How can I view the memory statistics of an NameServer using JConsole?

GOAL:

How can I monitor memory usage of an NameServer using JConsole?

GOAL:

Can JConsole be used to view the current java heap size of an NameServer?

FACT(s) (Environment):

All Supported Operating Systems
OpenEdge 10.1B
OpenEdge 10.1C

FIX:

There are several JVM arguments that need to be added to the java command line invoking the NameServer.


1) Edit the AdminServerPlugins.properties file in your $DLC/properties directory.

2) Modify the [Plugin.NameServer] group by adding the following entry to the section:
pluginpolicy=PluginPolicy.Progress.NameServer

3) Add the following new Plugin Policy Group. Note that the port number is arbitrary and does not have to be 5555. You can choose any port number as long as it is not already being used by another process:

[PluginPolicy.Progress.NameServer]
jvmargs=-Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=5555
-Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false
4) Restart the AdminServer
5) If jconsole has not been installed then install an appropriate Java Development Kit (jconsole is provided in the JDK)

When the NameServer is started either using the nsman command, Progress Explorer or OpenEdge Management/Explorer, the new jvmargs will be added that allow JConsole to view the NameServer process.
Refer to the documentation available for each operating system on how to run JConsole. When connecting to an agent with JConsole, the port number should match the port number used in the jvmargs line added to the AdminServerPlugins.properties file (e.g. 5555).

Note that the port number used here is arbitrary and does not have to be 5555.

If the jmxremote port was defined as 5555 and it was running remotely on machine myremotehost1 then the proper jconsole command to connect to it would be:
jconsole myremotehost1:5555

This will bring up a GUI interface for jconsole. It will require a username and password to connect to the AdminServer.

JConsole allows you to save the data presented in the charts in a Comma Separated Values (CSV) file.
To save data from a chart, simply right-click on any chart.
Select Save data as...
Specify the file in which the data will be saved.

You can save the data from any of the charts displayed in any of JConsole's different tabs in this way.