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.

1

Navigate to the following folder on the Orchestrator server system.

Option

Action

If you installed Orchestrator with the vCenter Server installer

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

If you installed the standalone version of Orchestrator

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

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.

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