8.4 Enabling Debug Mode and Core Dumps

If the log files are not generating enough information to identify the cause of a problem, you can run the Access Gateway Service in debug mode. You should not be running in debug mode except when you are trying to isolate a problem because of the following side effects:

Debug mode enables core dumps, enables X-Mag headers in LAN traces, and increases log levels by enabling all options in the DebugSettings.conf file located in the following directory:

Linux: /var/opt/novell/tomcat5/webaps/agm/WEB-INF/config/apache2

Windows: \Program Files\Novell\apache\conf

This section describes the following tasks:

8.4.1 Starting Apache in Debug Mode

Linux

Use the following commands to start debug mode:

/etc/init.d/novell-apache2 stop
/etc/init.d/novell-apache2 start debug

Windows

Use the following steps to enable debug mode:

  1. Create a tmp directory at the root of C:

  2. Stop Apache:

    1. Click Control Panel > Administrative Tools > Services.

    2. Right-click the Apache 2.2 service, then select Stop.

  3. Start Apache:

    1. Right-click the service, then click Properties.

    2. In the Start parameters box, specify

      -D allowServerDebug

    3. Click Start.

8.4.2 Examining the Debug Information

  1. Examine the Apache error log file or copy it so you can send it to Novell Technical Support:

    Linux: /var/log/novell-apache2

    Windows: \Program Files\Novell\apache\logs

  2. View the information at the local URLs or copy the pages to send to Novell Support:

    • http://127.0.0.1:8181/server-status

      This page displays debug information about caching, SSL, workers, and proxy information.

    • http://127.0.0.1:8181/server-info

      This page displays module and configuration information.

  3. If a crash occurred, examine the core dump file or copy it so you can send it to Novell Technical Support.

    Linux: /var/cache/novell-apache2

    Windows: C:\tmp directory that you created

8.4.3 Disabling Debug Mode

Linux

Use the following commands to disable debug mode:

/etc/init.d/novell-apache2 stop
/etc/init.d/novell-apache2 start nodebug

Windows

Use the following steps to disable debug mode:

  1. Click Control Panel > Administrative Tools > Services.

  2. Right-click the Apache 2.2 service, then select Stop.

  3. Right-click the service, then click Properties.

  4. In the Start parameters box, remove

    -D allowServerDebug

  5. Click Start.