Manually set the server log file size, and the number of rollover archive files to maintain in the serviceability.xml configuration file.
By default:, the server log files grow to 20MB before rolling over, and 12 archived file instances are retained (for a total of 13 files, named hostname-smp-server.log, hostname-smp-server_1.log, hostname-smp-server_2.log, and so forth).Upon reaching the maximum size, the log overwrites the oldest archived file, and a new log is created. Since the log fills up quickly, establish a file size and rollover policy that meets your record-keeping and troubleshooting needs. For example, you might want to keep more and smaller files, and you might want to copy archive files to storage for later analysis before they are overwritten.
(Max - Min + 2) * Size = System Usage
(9 - 1 + 2) * 20MB = 200MB
<rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy"> <FileNamePattern>log/hostname-smp-server_%i.log</FileNamePattern> <MinIndex>1</MinIndex> <MaxIndex>12</MaxIndex> </rollingPolicy>
<triggeringPolicy class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy"> <MaxFileSize>20MB</MaxFileSize> </triggeringPolicy>
(12 - 1 + 2) * 20MB = 260MB
(20 - 1 + 2) * 5MB = 105MB