Tools
Database Connections and PostgreSQL Max Connection in Web Help Desk
This article describes how to modify the DATABASE_CONNECTIONS in the Web Help Desk whd.conf file and MAX_CONNECTIONS in the postgresql.conf file. When you modify the number of allowed database connections in your whd.conf file, you should always set the DATABASE_CONNECTIONS as 50% of your max_connections in your postgresql.conf file.
First published date
Last published date
Overview
whd.conf file and MAX_CONNECTIONS in the postgresql.conf file.Product section
Resolution
When you modify the number of allowed database connections in your whd.conf file, you should always set the DATABASE_CONNECTIONS as 50% of your max_connections in your postgresql.conf file.
Please see the examples below.
Database connections in whd.conf file
- Go to
<WebHelpDesk>\conf(by default,C:\Program Files\WebHelpDesk\conf). - Open
whd.confin a text editor such as Notepad. - Search for Database Connections and set the number of allowed simultaneous database connections.
# ------------------------------------------------------ # Database Connections # # Number of allowed simultaneous database connections. # Large installations may benefit from increasing this limit. DATABASE_CONNECTIONS=50
- Save the file.
- Restart the Web Help Desk service.
Database connections in postgresql.conf file
- Go to
<WebHelpDesk>\pgsql9\data(by default,C:\Program Files\WebHelpDesk\pgsql9\data). - Open
postgresql.confin a text editor such as Notepad. - Search for CONNECTIONS AND AUTHENTICATION and set the value of max_connections.
# (change requires restart) max_connections = 100
- Save the file.
- Restart the PostgreSQL service (in services.msc).
- Restart the Web Help Desk service.
WebHelpDesk>\pgsql13\data (by default, C:\Program Files\WebHelpDesk\pgsql13\data).