Skip to content

Improve performance

Several factors affect Client Web Service, CWS, performance in addition to the provider scripts themselves.

Make sure that

  1. The server running the Client Web Service web requires a minimum of two virtual CPUs, but we recommend a lot more, especially for busy stores.
  2. The service account for the application pool used for Client Web Service should not be a member of Local Admins, since that will slow PowerShell down considerably.
  3. The Client Web Service DLLs should not be unloaded when the application pool is refreshed (see below).

Configure Application Initialization for Client Web Service

There is a feature for IIS in Windows Server 2012 and later that keeps all DLLs loaded and the worker process active, so the first user in the morning or after lunch won't get the loading penalty.

  1. Install the "Application Initialization" feature for IIS 8 (Windows Server 2012) or higher.
  2. Make sure you're using a separate application pool for the ZervicePoint Client Web Service site.
  3. Start IIS Manager, click <ServerName> at the top of the tree and then Configuration Editor.
  4. Choose section "system.applicationHost/applicationPools" and click "(Collection)"/"..." to get a list of application pools. Choose the application pool for Client Web Service.
  5. Set "startMode" to "AlwaysRunning" and close the window and click "Apply"
  6. Now w3wp.exe should always be started.
  7. In IIS Manager, click <ServerName> again and the Configuration Editor.
  8. Choose section "system.applicationHost/sites and click "(Collection"/"..." to get a list of sites. Choose the ZervicePoint Client Web Service site and click the "(Collection"/"...") property.
  9. Click on the only item in the list and set "preloadEnabled" to "True", "path" to "/" and "enabledProtocols" to "https". Close the window and click "Apply".
  10. This makes sure all needed DLLs are compiled and preloaded.