Enabling Garbage Collection Monitoring on the WebLogic Server 6/7/8

If the JVMGC test is to be executed for garbage collection (GC) monitoring, then the following additional steps need to be performed:

  1. Edit the startWebLogic.cmd file (in Windows. In Unix, this will be startWebLogic.sh) in the <ORACLE_HOME>/<WEBLOGIC_HOME>/config/<DOMAIN>/ directory (in WebLogic 8.1, this will be <ORACLE_HOME>/<WEBLOGIC_HOME>/samples/domain/<DOMAIN>/ directory and in WebLogic 12c, this will be <ORACLE_HOME>/<WEBLOGIC_HOME>/user_project/domains/base_domain/bin directory).
  2. Towards the end of the file, an entry to start the WebLogic server exists. Add a couple of lines to this entry as indicated by Figure 1.

    GC

    Figure 1 : Editing the startWebLogic.cmd file

  3. Start the WebLogic server.