If a server log regenerates multiple times a day, it becomes difficult to determine what causes problems. To prevent this, you can change the default size of the server log. The default size of the server log is 5MB.

Procedure

  1. On the Orchestrator server system, navigate to the folder that contains configuration files.

    Option

    Action

    If you installed Orchestrator with the vCenter Server installer

    Go to install_directory\VMware\Infrastructure\Orchestrator\app-server\conf.

    If you installed the standalone version of Orchestrator

    Go to install_directory\VMware\Orchestrator\app-server\conf.

    If you downloaded and deployed the virtual appliance

    Go to /etc/vco/app-server/.

  2. Open the log4j.xml file in a text editor and locate the following code block:
     <appender class="org.jboss.logging.appender.RollingFileAppender" name="FILE">
       <errorHandler class="org.jboss.logging.util.OnlyOnceErrorHandler"/>
       <param name="File" value="${jboss.server.home.dir}/log/server.log"/>
       <param name="Append" value="true"/>
    
       <!-- Rollover at 5MB and allow 4 rollover files -->
       <param name="MaxFileSize" value="5120KB"/>
       <param name="MaxBackupIndex" value="4"/>
    
       <layout class="org.apache.log4j.PatternLayout">
        <!-- The default pattern: Date Priority [Category] Message\n -->
        <param name="ConversionPattern" value="%d{yyyy-MM-dd HH:mm:ss.SSSZ} %-5p [%c{1}] %m%n"/>
       </layout>
     </appender>
    
  3. Change the following lines:
    <param name="MaxFileSize" value="5120KB"/>
    <param name="MaxBackupIndex" value="4"/>

    The MaxFileSize parameter controls the size of the log file, and the MaxBackupIndex parameter controls the number of files for the rollover.

    Note:

    Before you save the file, make sure it does not contain typos. If the file contains typos, the logs will be lost.

Results

The system reads this file dynamically. You do not need to reboot the server.