Ensure that the following prerequisites are met:
The DTrace Monitoring distribution file is downloaded from the Sun GlassFish Enterprise Manager DTrace Monitoring download page.
The following software is installed on your machine:
Sun GlassFish Enterprise Server v3
JDKTM release 7
Enterprise Server uses JDK release 7.
JDK release 7 is available for download from the Java Early Access Downloads site.
Change to the directory to which you downloaded the ZIP file.
cd download-dir |
download-dir is the directory where you downloaded the ZIP file.
Unzip the ZIP file.
unzip monitoring_dtrace-3_0-beta.zip |
When you unzip the file, a directory that is named monitoring_dtrace is created within the current directory. This new directory contains a subdirectory that is named lib, which contains the glassfish-dtrace.jar file.
Copy the glassfish-dtrace.jar file to the Enterprise Server modules directory.
cp monitoring_dtrace/lib/glassfish-dtrace.jar as-install/modules |
as-install is the directory in which Enterprise Server is installed.
If necessary, start an administrative domain.
asadmin start-domain domain |
domain is the name of the administrative domain to start.
Enable support for DTrace monitoring in Enterprise Server.
asadmin set configs.config.server-config.monitoring-service.dtrace-enabled=true |