ALUI Development Environment: Debugging

Logging FAQ

The following troubleshooting information provides solutions for common problems with logging configuration.

ALI Logging Spy (formerly Plumtree Logging Spy)

Q. The application I need does not appear in the list of senders in the Add Message Sender dialog box.

A. First, make sure the message sender is running. Confirm that the message sender is from ALI version 6.0 or higher. Earlier versions do not support the logging name discovery feature. Then check the following:

Q. Where are the messages from my sender? ALI Logging Spy does not display messages from my application.

A. First, go through troubleshooting steps above. In ALI Logging Spy, check the filter settings for the message sender. By default, only Error, Warning, Fatal , and Action are enabled. It is possible that the log message sender is not sending any messages at those logging levels. Try enabling Debug and see if you receive any messages.

Q. How do I increase the amount of memory allotted to ALI Logging Spy?

A. ALI Logging Spy will collect and display log messages until it detects that it is running low on memory. At this point it will refuse to accept messages and will display an alert. This is true both when Spy is displaying messages that are streaming in, and when Spy is displaying messages from a .spy log file. To increase the amount of memory available to ALI Logging Spy, follow the steps below.

Windows:

  1. Edit the ptspy.lap file located in PT_HOME/ptlogging/6.0/bin.

  2. Locate the following line: -Xmx256m

  3. The number in this line defines the maximum megabytes of memory available to ALI Logging Spy (256 by default as shown above).

  4. Set this number to the desired level. As a first step we recommend doubling the number to 512 (-Xmx512m).

  5. Save the file and restart ALI Logging Spy.

Unix:

  1. Edit the ptspy.sh file located in PT_HOME/ptlogging/6.0/bin.

  2. Locate the following line: JAVA_MEM_OPTS="-Xms32m -Xmx256m"

  3. The second number indicates the maximum megabytes of memory available to ALI Logging Spy (256 by default as shown above).

  4. Set this number to the desired level. As a first step we recommend doubling the number to 512 (JAVA_MEM_OPTS="-Xms32m -Xmx512m").

  5. Save the file and restart ALI Logging Spy.

ALI Logger (formerly Plumtree Logger)

Q. Where are the messages from my sender? ALI Logger is not recording messages from my message application.

A. First, go through troubleshooting steps under the first question above. If you are not receiving any messages in a log file from a given message sender, make sure that the ALI Logger Service/Daemon is running. Check the ALI Logger internal diagnostic file at [install-directory]/ptlogging/logs/ptlogger.out. You should see messages of the form "Starting the Plumtree Logger service...", "--> Wrapper Started as Service","OpenLog: verbosity level = 2", "Plumtree Logger: Successfully read configuration file at: C:\Program Files\Plumtree\ptlogging\6.0\bin\..\..\..\settings\ptlogging\ptLogger.xml".

Check the ALI Logger configuration file: [install-directory]/settings/ptlogging/ptLogger.xml. Make sure that there are appropriate <filters> and <appender> nodes in the configuration file for the message sender from which you are trying to receive messages. See Configuring Logging Receivers : ALI Logger for more details.