Go to main content

Oracle® Solaris Cluster Data Service for Apache Tomcat Guide

Exit Print View

Updated: August 2018
 
 

Debugging HA for Apache Tomcat

HA for Apache Tomcat has a file named config that enables you to activate debugging for Apache Tomcat resources. This file is in the /opt/SUNWsctomcat/etc directory.

How to Activate Debugging for HA for Apache Tomcat

  1. Determine whether debugging for HA for Apache Tomcat is active.
    # grep daemon /etc/syslog.conf
    *.err;kern.debug;daemon.notice;mail.crit        /var/adm/messages
    *.alert;kern.err;daemon.err                               operator
    #

    If debugging is inactive, daemon.notice is set in the file /etc/syslog.conf.

  2. If debugging is inactive, edit the /etc/syslog.conf file to change daemon.notice to daemon.debug.
  3. Confirm that debugging for HA for Apache Tomcat is active.

    If debugging is active, daemon.debug is set in the file /etc/syslog.conf.

    # grep daemon /etc/syslog.conf
    *.err;kern.debug;daemon.debug;mail.crit        /var/adm/messages
    *.alert;kern.err;daemon.err                              operator
    #
  4. Restart the syslogd daemon.
    # svcadm restart svc:/system/system-log:default
  5. Edit the /opt/SUNWsczone/sczbt/etc/config file to change the DEBUG= variable to one of the following settings:
    • DEBUG=ALL

    • DEBUG=resource name

    • DEBUG=resource name,resource name,…

    # cat /opt/SUNWsctomcat/etc/config
    #
    # Copyright 2006, 2012, Oracle and/or its affiliates.  All rights reserved.
    #
    # Usage:
    #       DEBUG=<RESOURCE_NAME> or ALL
    #
    DEBUG=ALL
    #

    Note -  To deactivate debugging, repeat this procedure, changing daemon.debug to daemon.notice and changing the DEBUG variable to DEBUG=.