Connect to Glassfish

After you install OverOps on your machine, you’ll need to connect it to your Glassfish server.

Please choose the Glassfish launch configuration you’re using:

Standalone Glassfish

Admin Console/Netbeans Plugin

Eclipse Plugin

IntelliJ Plugin

 

Standalone Glassfish

  • Locate domain.xml under {glassfish dir}/domains/{domain}/config/ .
  • Locate the <java-config> xml node.
  • Under <java-config>, add the following <jvm-options> node:<jvm-options>-agentlib:TakipiAgent</jvm-options>
  • Restart Glassfish.
  • Test the installation – head back to app.overops.com and click .
    If the connecting process was successful, you will get a “Monitoring” message next to your JVM.
  • Throw an exception, or make sure your application throws exceptions.

 

Admin Console/Netbeans Plugin

  • Open the Glassfish console (http://localhost:4848).
  • Expand Configurations > server-config > JVM settings.
  • Switch to the JVM Options tab.
  • Add a new JVM option with: -agentlib:TakipiAgent
  • Click Save.
  • Restart Glassfish.
  • Test the installation – head back to app.overops.com and click .

    If the installation was successful, a “OverOps is active” message will be displayed, and a green “Monitoring” message will appear next to your JVM(s).
  • Throw an exception, or make sure your application throws exceptions.

 

Eclipse Plugin

  • Open Debug Configurations.
  • Select Glassfish Application Server -> <Your Glassfish configuration>.
  • Switch to the Arguments tab.
  • In the VM arguments box, add -agentlib:TakipiAgent
  • Click Apply.
  • Start Glassfish.
  • Test the installation – head back to app.overops.com and click .
    If the connecting process was successful, you will get a “Monitoring” message next to your JVM.
  • Throw an exception, or make sure your application throws exceptions.

 

IntelliJ Plugin

  • Glassfish Run/Debug configurations.
  • In the VM options box, add: -agentlib:TakipiAgent
  • Click OK.
  • Start Glassfish.
  • Test the installation – head back to app.overops.com and click .
    If the connecting process was successful, you will get a “Monitoring” message next to your JVM.
  • Throw an exception, or make sure your application throws exceptions.

 

Have more questions? Submit a request