How to change the number of web service threads

Last update: 22 October 2018

Information

The Fabasoft Folio web service handles incoming requests in a thread pool. This article describes how to change the number of threads in the thread pool in case of a necessity.

Windows

Set the Registry Key “HKEY_CURRENT_USER\Software\Fabasoft\Environment\FSCVEXT_MAXTHREADS” and the Value “(Default)” to the number of Kernel Threads.

Example:
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Fabasoft\Environment\FSCVEXT_MAXTHREADS]
@="16"

After an IISRESET your changes will be applied.

NOTE:

You have to be logged in with the Fabasoft Folio web service account.

Linux

Change the line “Threads” in your /etc/fabasoft/web/mpm.conf to the desired number of threads, and create the folder “/etc/fabasoft/settings/users/fscsrv/Software/Fabasoft/Environment/FSCVEXT_MAXTHREADS” and the file “registry.default” within that folder, containing the desired number of threads.

Example:

1) vim /etc/fabasoft/web/mpm.conf

RHEL6/CentOS6

In that operating systems, only the Threads parameter needs to be adjusted:

#
# Server-Pool Size Regulation (MPM specific)
#

## worker MPM
# StartServers:        initial number of server processes to start
# MaxClients:          maximum number of simultaneous client connections
# MinSpareThreads:     minimum number of worker threads which are kept spare
# MaxSpareThreads:     maximum number of worker threads which are kept spare
# ThreadsPerChild:     constant number of worker threads in each server process
# MaxRequestsPerChild: maximum number of requests a server process serves

  StartServers         1
  ServerLimit          1
  MaxClients           8
  MinSpareThreads      8
  MaxSpareThreads      8
  ThreadsPerChild      8
  MaxRequestsPerChild  0


## async MPM
# Threads:             number of worker threads (default: 8)

  Threads              16

RHEL7/CentOS7

In that operating systems, all the keys MaxClients, MinSpareThreads, MaxSpareThreads, ThreadsPerChild and Threads needs to be adjusted:

#
# Server-Pool Size Regulation (MPM specific)
#

## worker MPM
# StartServers:        initial number of server processes to start
# MaxClients:          maximum number of simultaneous client connections
# MinSpareThreads:     minimum number of worker threads which are kept spare
# MaxSpareThreads:     maximum number of worker threads which are kept spare
# ThreadsPerChild:     constant number of worker threads in each server process
# MaxRequestsPerChild: maximum number of requests a server process serves

  StartServers         1
  ServerLimit          1
  MaxClients           16
  MinSpareThreads      16
  MaxSpareThreads      16
  ThreadsPerChild      16
  MaxRequestsPerChild  0


## async MPM
# Threads:             number of worker threads (default: 8)

  Threads              16

2)

mkdir /etc/fabasoft/settings/users/fscsrv/Software/Fabasoft/Environment/FSCVEXT_MAXTHREADS
echo -n "16" > /etc/fabasoft/settings/users/fscsrv/Software/Fabasoft/Environment/FSCVEXT_MAXTHREADS/registry.default
chown fscsrv.fsc /etc/fabasoft/settings/users/fscsrv/Software/Fabasoft/Environment/FSCVEXT_MAXTHREADS -R

After restarting your Fabasoft Folio web service the changes will be applied.

Note:

You can check you configuration with the URL http://<webserver>/<vdir>/fscasp/content/bin/fscvext.dll?h