Instrument Oracle GlassFish with the Admin Console
- Start the GlassFish application server.
- Navigate to the GlassFish admin console
(
http://localhost:4848/
). - Navigate to Configurations > server-config > JVM Settings.
- Click the JVM Options tab and click Add JVM Option to add a blank field in the list.
- Add the following path of the
javaagent.jar
file in the blank field:-javaagent:/home/appduser/javaagent/javaagent.jar
- Click Save on the right top corner.
- Restart the GlassFish application server and
<glassfish_home>\domains\<domain_name>\config.
The
domain.xml
file must contain an entry for the -javaagent
option.