Deleting trace files

The FTM SWIFT trace function creates a set of up to 10 trace files per IBM® Integration Bus integration server. Each time an integration server is started, a new set of trace files is created. Each file is approximately 2 MB. Therefore, the entire set of trace files for an integration server can be up to 20 MB. These files are used in a wraparound mode. That is, after the tenth file is filled, the first file is replaced.

The number of trace files depends on the type of IBM Integration Bus environment:
In a running production environment
When integration nodes and integration servers run constantly, the number of trace files and their space consumption should remain nearly constant. Check the space consumption of the directory containing the trace files once per week.
In a development or test environment
If integration nodes and integration servers are started often, the number of trace files and their space consumption will increase over time.

You can delete older trace files that are not used with the rm (remove) command.

To automatically remove trace files that are not used after a specific time interval, you can use the following command:
find /var/ftmswift_v300/run/trace -name "*.trc" -type f -atime +30 -exec rm -rf {} \;
This command looks for all trace files starting at the directory /var/ftmswift_v300/run/trace. For information about the naming convention and directory structure of the trace files, see Trace files and their directories.
-name "*.trc"
Specifies the name of the files, for example, all files that have the extension .trc.
-type f
Specifies that directories are not to be removed.
-atime +30
Specifies the number of days that the trace file was last accessed before it can be deleted, for example, 30 days.
-exec rm
Specifies the command to be executed for each file, for example, the rm (remove) command.
You can also set up the cron Daemon to issue this command daily.