Connect to Glassfish

When OverOps is installed on your machine, connect it to your Glassfish server.

Follow the instructions of the relevant Glassfish launch configuration:

Standalone Glassfish

Admin Console/Netbeans Plugin

Eclipse Plugin

IntelliJ Plugin

 

Standalone Glassfish

To connect to Glassfish:

  1. From the {glassfish dir}/domains/{domain}/config/ directory, locate the domain.xml file.
  2. Locate the <java-config> xml node.
  3. Under <java-config>, add the following <jvm-options> node:
    <jvm-options>-agentlib:TakipiAgent</jvm-options>
  4. Restart Glassfish.
  5. Test the installation: From the OverOps web application dashboard, click Add Server. From the dialog box, click Next and then click Test Installation.

    When the connection is established, the JVM status is 'Monitoring'.

  6. Test that your application throws exceptions.

 

Admin Console/Netbeans Plugin

  1. From the Glassfish console (http://localhost:4848), under Common Tasks, select Configurations > server-config > JVM Settings.
  2. From JVM Options, switch to the JVM Options tab and add a new JVM option: -agentlib:TakipiAgent

  3. Click Save.
  4. Restart Glassfish.
  5. Test the installation: From the OverOps web application dashboard, click Add Server. From the dialog box, click Next and then click Test Installation.

    When the connection is established, the JVM status is 'Monitoring'.

  6. Test that your application throws exceptions.

 

Eclipse Plugin

  1. Open Debug Configurations.
  2. Select Glassfish Application Server -> <Glassfish configuration>.
  3. Switch to the Arguments tab.
  4. In the VM arguments box, add -agentlib:TakipiAgent

  5. Click Apply.
  6. Restart Glassfish.
  7. Test the installation: From the OverOps web application dashboard, click Add Server. From the dialog box, click Next and then click Test Installation.

    When the connection is established, the JVM status is 'Monitoring'.

  8. Test that your application throws exceptions.

 

IntelliJ Plugin

  1. From IntelliJ, open Edit Configurations.

  2. From Run/Debug Configurations, in the VM options field, add: -agentlib:TakipiAgent

  3. Click OK.
  4. Restart Glassfish.
  5. Test the installation: From the OverOps web application dashboard, click Add Server. From the dialog box, click Next and then click Test Installation.

    When the connection is established, the JVM status is 'Monitoring'.

  6. Test that your application throws exceptions.

 

Have more questions? Submit a request