IBM Support

TWS or eWAS data trace file grows without bounds

Troubleshooting


Problem

A file is recreated after being removed multiple times and fills the file system space if not managed. WebSphere's server.xml has been inspected and this file is not specified in server.xml.

Symptom

What appears to be a binary trace file intended to provide database or datasource tracing grows without bounds and is recreated after a reboot or after WebSphere has been restarted.

Cause

It is possible that a change was made to trace settings within WebSphere's resources.xml file.

Diagnosing The Problem

This command will return all file names that have "dataTrace.trc" in the text of the file.

cd <TWAHome>/eWAS

find . -type f | xargs grep -l "dataTrace.trc" 2>/dev/null

Resolving The Problem

A known location of a trace setting that behaved this way follows:

<TWAHome>/eWAS/profiles/<profileName>/config/cells/<cellName>/nodes/<nodeName>/servers/<serverName>/resources.xml

Sample line with the file reference from resources.xml:

<resourceProperties xmi:id="J2EEResourceProperty_1344437099482" name="traceFile" type="java.lang.String" value="/tmp/dataTrace.trc" description="The trace file to store the trace output. If you specify the trace file, the DB2 Jcc trace will be logged in this trace file. If
this property is not specified and the WAS.database trace group is enabled, then both WebSphere trace and DB2 trace will be logged into the
WebSphere trace file." required="false"/>

As the description states, a file only needs to be specified to have Jcc tracing written to that file. To disable the trace writing to the target file:

Replace:

value="/tmp/dataTrace.trc"

With

value=""

Then restart the WebSphere Application Server.

[{"Product":{"code":"SSGSPN","label":"IBM Workload Scheduler"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"WebSphere Application Server","Platform":[{"code":"PF002","label":"AIX"},{"code":"PF010","label":"HP-UX"},{"code":"PF016","label":"Linux"},{"code":"PF027","label":"Solaris"},{"code":"PF033","label":"Windows"}],"Version":"8.4;8.5;8.5.1;8.6","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
17 June 2018

UID

swg21622563