Getting poor performance when you set WSE 3.0 diagnostics options on the WSE Settings 3.0 window

If you get poor performance when you set WSE 3.0 diagnostics options on the WSE Settings 3.0 window, remove the trace files completely to reduce the size of the files or disable the Message Trace option.

Symptoms

IBM® Content Manager web services supports Microsoft™ .NET Framework 4.6 and Microsoft WSE (Web Services Enhancement) 3.0. When you develop a web services client application by using Microsoft Visual Studio 2005, you can set WSE 3.0 diagnostics options on the WSE Settings 3.0 window. However, your performance might decrease after you turn on the Message Trace option on the WSE Settings 3.0 window. Running the client application might cause a 100% usage of processing resources and also cause the memory usage to exceed 400 MB.

Causes

The WSE 3.0 settings affect the whole Visual Studio 2017 project, regardless of whether the build configuration is Debug or Release. After the Message Trace option is enabled, two trace files are generated to log all the activities. By default, these files are called InputTrace.webinfo and OutputTrace.webinfo. The size of these two files increases to hundreds of megabytes after a period of repeatedly running your client application that results in a performance degradation.

Resolving the problem

To solve this problem, you can perform either of the following procedures:

Procedure 1
Remove the trace files after running the application to ensure the size of the files is less than 50 MB.
Procedure 2

You can disable the Message Trace option on the WSE Settings 3.0 window or edit the app.config file manually when you prepare to release your application.

Disable the Message Trace option on the WSE Settings 3.0 window

To disable the Message Trace option on the WSE Settings 3.0 window:

  1. From the Solution Explorer window in Visual Studio, right-click your project and open the WSE Settings 3.0 window by clicking WSE Settings 3.0 on the menu.
  2. Clear the Enable Message Trace check box.
Edit the app.config file manually

Open the app.config file from the project directory and set the value of the trace attribute enabled to false as in the following example.

<diagonostics>
<trace enabled="false" input="InputTrace.webinfo" 
output="OutputTrace.webinfo" />
<detailedErrors enabled="true"/>
</diagonostics>