How to prevent too many connections with the same username or ip adress? is there any database, startup parameter in 4GL?
Sometimes we have a network error or a client error where many connections are started in a few seconds and the databases are overflowing and new connections can no longer be started
Thanks!
There are no startup parameters or other configuration options that will restrict connections in this manner.
To implement such restrictions you would need to add code to your connection startup (login) procedure. For interactive clients that is the procedure specified with the -p startup parameter. You can see the userid and ip address of other connections by querying the _CONNECT virtual system table. Something like this will give you the information that you need:
Replace the DISPLAY with some logic to respect whatever limits you want to impose and, if those limits are exceeded, QUIT the session.