NonStop Servlets for JSP System Administrator's Guide

Logs and Error Conditions
NonStop Servlets for JavaServer Pages (NSJSP) System Administrator’s Guide525644-001
5-3
Status Information
5. Copy the iTP_server-multiLogs.xml.sample to the iTP_server.xml file.
6. Delete the iTP_server.xml.sample and create the
iTP_server.xml.sample by symbolically linking to the iTP_server-
multiLogs.xml.sample file, as follows:
ln -s iTP_server-multiLogs.xml.sample iTP_server.xml.sample
7. Migrate the changes saved in step 3 to the iTP_server.xml file.
8. Change the Stderr from servlet.log to servlet.error.log in the
servlet.config file, as follows:
Stderr $root/logs/servlet_error.log
9. Restart the NSJSP container.
Status Information
NSJSP processes report the following kinds of information to the standard output file:
A message indicating that the NSJSP process has started up, or failed to start.
Any message written to the standard output file by a servlet or servlet method. For
example, the default init() method writes a message reporting that it was
invoked.
Log Files Rollover
The NSJSP logger records all logged messages to disk file(s) in a specified directory
(the default is iTPWS_INSTALL_DIR/servlet_jsp/logs). The actual filenames of
the log files are created from a configured prefix, the current date in YYYY-MM-DD
format, and a configured suffix. After midnight each night, the next logged message
switches to a new log file (based on the new date), without having to shut down SSC in
order to switch logs.
The rollover feature applies to log files created by NSJSP, except the servlet.log
and servlet_error.log files in the iTPWS_INSTALL_DIR/logs directory.
Log Files Cleanup Script
nsjsp_cleanlogs is a command-line utility that should be used as an aid in cleaning
up log files generated by the NSJSP container. This script is located in the
iTPWS_INSTALL_DIR/bin directory. The nsjsp_cleanlogs utility can be used as
part of a cron job or some other form of regularly scheduled administrative process.
By default, log files created by the NSJSP container are named using the specified
prefix, the current date, and the specified suffix in the following format: prefix.YYYY-
MM-DD.suffix. The nsjsp_cleanlogs script recursively searches the specified
directory for filenames in this format. Files that are older than the specified number of