Prevent Logging to NI Web Server Error Log File on a RT Target

Updated May 15, 2024

Issue Details

My LabVIEW RT executable keep logging Web Services error and it caused by the growing log file on a RT Target.

The logfile repeatedly logs the message:
appweb: 0: appweb: Memory used -2,097,954,816, redline 2,126,008,764, limit 2,147,483,647.
appweb: 0: appweb: Consider increasing memory limit.
appweb: 0: appweb: Memory request for 131,072 bytes exceeds memory limit.


How do I prevent LabVIEW RT executable from logging Web Services errors to the error log file?

Solution

You can comment out (#) the error log command on niembeddedws.conf as example below which prevents capturing errors of app Web Services.
#ErrorLog errors.log

The niembeddedws.conf file is included in the Application build files. This file can only be generated when the Application is built to use the Application Web Server.