Spectrum webtomcat log rotation
search cancel

Spectrum webtomcat log rotation

book

Article ID: 206475

calendar_today

Updated On:

Products

CA Spectrum DX NetOps

Issue/Introduction

How does Spectrum webtomcat log rotation work?

Why aren't the Spectrum webtomcat log files rotating when they grow or when the process is restarted?

Environment

All supported DX NetOps Spectrum releases

Cause

The webtomcat logs aren't rotating and are slowly growing.

Resolution

At this time the Spectrum webtomcat implementation does not have a log rotation schema implemented. If desired open a new support case to request an Enhancement Request to improve this part of the product.

In general the Spectrum webtomcat implementation doesn't generate a great deal of logging without debug options enabled.

If log growth from the $SPECROOT/webtomcat/logs directory is a concern the following steps can be taken as needed.

  1. Stop webtomcat using $SPECROOT/webtomcat/bin/stopWebTomcat.sh
    • Confirm process are stopped using "ps -ef | grep -i webtomcat".
    • There should be no running instances after stopping it. If ones remain they may need to be manually shutdown with "kill -9 <PID>".
  2. Delete the large log files, or move them to a safe location for storage, from the $SPECROOT/webtomcat/logs directory.
  3. Start webtomcat using $SPECROOT/webtomcat/bin/startWebTomcat.sh
  4. Confirm the new logs are generated in the $SPECROOT/webtomcat/logs directory.

Additional Information

The Spectrum tomcat log rotation is discussed further in the Tomcat Log Rotation documentation topic.