The Traffic logging level of the Qlik Sense Engine logs the JSON traffic exchanged in the WebSocket connection between the Engine and any client into a text file. It is turned off by default.
While this is useful in diagnostic situations, this logging level is extremely verbose and should be used with caution and only in circumstances where there is an explicit need for its information. Such situations are connectivity errors or connection stability issues that could not be investigated using lower levels of logging.
The main performance bottleneck when turning on this logging level is CPU consumption needed to capture and write the verbose traffic between the Engine and client.
See the appendix of the article for more information on performance impact.
How to enable Traffic Logging
Traffic Logging is a logging level available in the Qlik Sense Engine logging settings. By default, it is disabled.
Note: Only enable this when there is an explicit need to and only short-term. Substantial performance degradation is expected.
- Open the Qlik Sense Management Console
- Navigate to Engines
- Locate the engine you wish to edit and click Edit
- In the General section, locate Tracing
- Traffic log level is the last option listed.
- Set it from Off to On
- Restart the following Qlik Sense Services:
- Qlik Sense Engine Service
- Qlik Sense Service Dispatcher
- Repeat on all Engine nodes as applicable
How to disable Traffic Logging
Traffic Logging is a logging level available in the Qlik Sense Engine logging settings. By default, it is disabled.
Note: Only enable this when there is an explicit need to and only short-term. Substantial performance degradation is expected.
- Open the Qlik Sense Management Console
- Navigate to Engines
- Locate the engine you wish to edit and click Edit
- In the General section, locate Tracing
- Traffic log level is the last option listed.
- Set it from On to Off
- Restart the following Qlik Sense Services:
- Qlik Sense Engine Service
- Qlik Sense Service Dispatcher
- Repeat on all Engine nodes as applicable
Performance Impact
In a testing scenario with 200 concurrent users accessing a basic application, the processor performance impact can be seen as follows:
![performance impact CPU traffic logging.png performance impact CPU traffic logging.png](https://community.qlik.com/t5/image/serverpage/image-id/47566iCEA0B62B12034BD8/image-size/large?v=v2&px=999)
RAM consumption is as follows:
![performance impact RAM traffic logging.png performance impact RAM traffic logging.png](https://community.qlik.com/t5/image/serverpage/image-id/47567i0765F61279F3974A/image-size/large?v=v2&px=999)
The RAM impact of Traffic logging is minimal whereas there is a ~23% increase in CPU utilization with traffic logging enabled.