Instrument Oracle GlassFish with the Admin Console

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