Add Additional Timing Information for NI Web Server Logs

Updated Feb 7, 2025

Reported In

Software

  • LabVIEW

Operating System

  • Windows

Issue Details

I'm getting a slow performance from my web applications, is there anything I can use to see if there is a delay in how NI Web Server resolves the requests?

Solution

You can edit NI Web Server configuration to include additional timing information. For you to see how long NI Web Server is taking to resolve incoming requests, please go through the following steps:

 

1- Open C:\Program Files\National Instruments\Shared\Web Server\conf\httpd.conf as administrator.

2- Edit the line that looks like this (line number around 370):

LogFormat "%h %l %u %t \"%r\" %>s %b" common 

to be this:

LogFormat "%h %l %u %t %{ms}T \"%r\" %>s %b" common

3- Launch NI Web Server Configuration from Windows and Restart NI Web Server from the Control tab (NI Web Server Configuration >> Control tab >> Restart).

4- The effect of this change can be seen in the C:\ProgramData\National Instruments\Web Server\logs\access.current.log, now the entries should have the number of milliseconds the request took, right after the date-time information. 

NI Web Server millisecond information added.png