Solution
Starting in LabVIEW 2013, the Application Web Server allows only ten client connections at a time. While this default client limit has been set, we can add a configuration token to specific files and adjust the connection limitation to meet our needs.
Application Web Server Web ServicesWhen you deploy a Web service directly from LabVIEW or create an installer that deploys a stand-alone Web service, the resulting Web service runs in the NI Application Web Server. By adjusting the Application Web Server, we can change the default client limit property.
- Navigate to
C:\Program Files (x86)\National Instruments\Shared\NI WebServer.
- Using a text editor, open
NISystemWebServer.conf.
- In the line beneath the LimitRequestForm token, add the command
LimitClients
followed by a number, such as LimitClients 25.
The number you enter represents the maximum number of clients that will be able to connect to your Web service. - Save and close the configuration file.
- Please repeat steps three and four with
NIWebAppServer.conf
. - After changing the configuration files, you will need to restart the NI System Web Service (a Windows Service) or restart your computer. After that, you should be able to deploy Web services that reflect your newly configured client limit.
RT Application Web Server:
.\etc\natinst\appweb\NIWebAppServer.conf
RT System Web Server:
.\etc\natinst\appweb\NISystemWebServer.conf
Executables with Web ServicesWhen you include a Web service in a stand-alone application, the build process creates a separate web server for the Web service to use (it does not use the NI Application Web Server). In light of this architecture difference, the process for adjusting the client limit is slightly different.
- Navigate to the directory where your executable has been built.
- Using a text editor, open
niembeddedws.conf.
- In the line beneath the LimitRequestForm token, add the command
LimitClients
followed by a number, such as LimitClients 25.
The number you enter represents the maximum number of clients that will be able to connect to your Web service. - Save and close the configuration file.
- Restart the executable. After you have adjusted the single configuration file, the included Web service should reflect your adjusted client limit