Setting log files size and rotation

You can specify the maximum size and number of log files to be stored on the server.

Before you begin

Before performing this procedure, make sure you have the required disk space. IBM® recommends that the IBM Sametime® Gateway server retain a history at least 2 GB in size, to assist with troubleshooting. If you can spare more disk space than that, feel free to set the file "Maximum Size" (shown in the table) to more than 20 MB.

About this task

Complete these steps using the Integrated Solutions Console on the Sametime Gateway server where the logs will be stored.

Procedure

  1. In the Integrated Solutions Console, click Servers > Server Types > WebSphere application servers > RTCGWServer.
  2. In the "Server Infrastructure" section, click Java and Process management > Process Definition.
  3. In the "Additional Properties" section, click Logging and Tracing > JVM Logs.
  4. In the "General Properties" section, update the following fields both for System.out and System.err sections:
    Option Description
    Log File Rotation Make sure this is managed by file size rather than file age.
    Maximum size Set this value to at least 20 MB.
    Maximum Number of Historical Log Files A value of 2 is the recommended maximum.
  5. Click OK.
  6. Return to Additional Properties.
  7. In the "Additional Properties" section, click Logging and Tracing > Diagnostic Trace.
  8. Click File and update the following fields in the Trace section:
    Option Description
    Maximum size Set this value to at least 20 MB.
    Maximum Number of Historical Log Files A value of 15 is the recommended maximum.
  9. Click OK.
  10. Click Save to save these changes to the master configuration.
  11. If Sametime Gateway is clustered, repeat these steps for each node within the cluster.