Applies To:
  • CitectSCADA 7.0

Summary:

Tracelog.dat, found in the Windows directory, was introduced in CitectSCADA v7.0 to log certain types of errors and events generated by CitectSCADA. By default, CitectSCADA will continue writing to this file until it is full.

Tracelog.dat is very large - some customers have reported this file growing as large as 8GB. In extreme cases, this may cause CitectSCADA to crash. 


Solution:

By default, there is no limit to the size of tracelog.dat in the release version of CitectSCADA v7.0.

The workaround is to edit the file citect32.exe.config, found in Citect's bin directory.

The section below:


<listeners>
<!--maxFileSize="2048"
archiveFile="false"-->
<add name="Trace File Destination"


























type="Citect.Platform.Logging.TraceListeners.LogFileTraceListener, Citect.Platform.Logging.TraceListeners, Version=1.0.0.0, Culture=neutral, PublicKeyToken=13aaee2494f61799"


listenerDataType="Citect.Platform.Logging.TraceListeners.LogFileTraceListenerData, Citect.Platform.Logging.TraceListeners, Version=1.0.0.0, Culture=neutral, PublicKeyToken=13aaee2494f61799"


fileName ="%windir%\tracelog.dat"
formatter="TSV Formatter"










/>


</listeners>




Should be changed to read:





<listeners>
<add name="Trace File Destination"










type="Citect.Platform.Logging.TraceListeners.LogFileTraceListener, Citect.Platform.Logging.TraceListeners, Version=1.0.0.0, Culture=neutral, PublicKeyToken=13aaee2494f61799"


listenerDataType="Citect.Platform.Logging.TraceListeners.LogFileTraceListenerData, Citect.Platform.Logging.TraceListeners, Version=1.0.0.0, Culture=neutral, PublicKeyToken=13aaee2494f61799"


fileName ="%windir%\tracelog.dat"
formatter="TSV Formatter"










maxFileSize="2048"

""
archiveFile="false"

""

/>


</listeners>





The important parameter here is maxFileSize, which limits the size of tracelog.dat to the specified number of kilobytes. This change, then, will limit tracelog.dat to 2048kB.





Future versions of CitectSCADA will set this limit by default.


Keywords:
 

Attachments