Sun Gathering Debug Data for Sun Java System Application Server

ProcedureTo Collect Debug Data for the Load Balancer Plug-in

The locations of the following libraries referenced in this procedure depend on the OS and Web server version you are using:

  1. Check the plug-in version with the following command (UNIX only):

    • Web Server 6.0 or Web Server 6.1


      strings libpassthrough.so | grep BuildId
    • Apache Web server


      strings mod_loadbalancer.so | grep BuildId
  2. Verify the checksum of the plug-in library using one of the following commands:

    • cksum

    • elfdump —k

    • sum

    • md5sum

  3. Edit and add the relevant configuration files to generate more debug information.

    • Sun Java Web Server 6.0

      Solaris, HP-UX,
      Linux

      Edit the server-root/web-identifier/config/magnus.conf file, adding the following line at the end:

      LogVerbose on

      Windows

      Edit the server-root\web-identifier\config\magnus.conf file, adding the following line at the end:

      LogVerbose on

    • Sun Java Web Server 6.1

      Solaris, HP-UX,
      Linux

      Edit the server-root/web-identifier/config/server.xml file, setting the loglevel property of the LOG element to FINEST.

      Windows

      Edit the server-root\web-identifier\config\server.xml file, setting the loglevel property of the LOG element to FINEST.

    • Apache

      Solaris, HP-UX,
      Linux

      Edit the server-root/config/httpd.conf file, setting the LogLevel option to debug.

      Windows

      Edit the server-root\confighttpd.conf file, setting the LogLevel option to debug.

  4. Edit the server-root\web-identifier\config\loadbalancer.xml file and set the require-monitor-data property to true.


    <property name="require-monitor-data" value="true"/>

    This generates debug information for the Load Balancer plug-in in the Web server error log.