Log files overflow protection

The vimacc logging mechanism includes built-in overflow protection. This feature can be configured in the corresponding service configuration file using the following parameters:

[Logging] CheckFileSize=10 BandwidthCheckInterval=15 MaxLoggingBandwidth=500

Parameter Description

  • CheckFileSize
    Defines the initial daily file size in megabytes. Within this limit, the bandwidth limiter does not perform overflow checks.

  • BandwidthCheckInterval
    Defines the measurement interval for bandwidth checks in minutes.

  • MaxLoggingBandwidth
    Defines the maximum amount of data in kilobytes that must not be exceeded within a single time slot.


Overflow Protection Mechanism

  • With every write operation to the daily log file, the system calculates the total amount of data already written.

  • Once the value defined by CheckFileSize has been reached for the first time, the system checks at every BandwidthCheckInterval whether the amount of data written since the last interval exceeds the configured MaxLoggingBandwidth.

  • If the check fails during an interval (i.e., the written data in kilobytes is equal to or greater than MaxLoggingBandwidth), logging for the current file will be stopped. Logging will resume only when a new file is created due to the daily file switch or a service restart.

  • Additionally, during each write operation, a validation ensures that the new total file size does not exceed the theoretical maximum possible daily file size, calculated as follows:

CheckFileSize + ( ((24 * 60) / BandwidthCheckInterval) / MaxLoggingBandwidth / 1024 )