Configuring Parallel Client Requests for the NI Web Server

Updated Oct 11, 2022

Reported In

Software

  • LabVIEW

Issue Details

  • I have a Web Service published on the NI Web Server and would like to configure it for parallel client requests. How can I do this?
  • I would like to modify the NI Web Server .conf files to adjust the number of clients and workers. Where are these files located?
  • What directives can I use inside the NI Web Server configuration files to allow for parallel client requests?

Solution

The NI Web Server configuration files can be located in C:\Program Files\National Instruments\Shared\Web Server\conf. The main file is httpd.conf.
Since the NI Web Server is Apache-based, the MDM module is required for parallel client requests.

Note: Do not modify other .conf files since these only apply to certain requests. To ensure that the Web Service applies the required configuration, only modify httpd.conf.

Inside the httpd.conf file, the following directives can be added:
  • ThreadsPerChild
    • This specifies the number of threads created by each child process and takes the following syntax: ThreadsPerChild <number> where <number> represents the number of threads. The default value is 64.
  • ListenBackLog
    • This specifies the maximum length of the queue of pending connections and takes the following syntax: ListenBackLog <backlog> where <backlog> represents the queue length.
    • This directive will be utilised if the maximum  number of client connections has been reached.

Note: The MaxRequestWorkers directive cannot be used with the NI Web Server because this directive does not apply to Windows.

Additional Information

More information on Apache MDM directives can be found at Apache MPM Common Directives.