Connection exceeds limit error for external db - Root cause?

Certified Lead Developer

Hi All,

We are getting connection exceeds limit errors on external Oracle DB frequently. Max size has been set as 300 on DB side.

 

As an interim measure, we are increasing this limit but what could be the possible reasons from Appian side which could result in this issue?

1)How do the Appian to DB connections work in nutshell? Do the connections get close automatically when a query execution is complete via query rule, query entity or stored procedure?

2)Can multiple DB calls on an interface result in lot of new number of DB connections?

3)What could keep the connection open from Appian to external DB side? Any suggestions?

4)Can we check the number of active connections to DB on Appian side? If yes, which logs would help here?

5)Can an upgrade to higher Appian version which allows parallel DB calls be a reason for this kind of issue if there are more queries happening on the DB at same time?

 

Any pointers or suggestions welcomed:)

Thanks.

Hitesh

  Discussion posts and replies are publicly visible

  • 0
    Certified Lead Developer
    Below extract from 17.4 release notes:
    "In 17.4, when an expression or SAIL interface contains multiple queries, Appian automatically runs those queries in parallel if possible, which greatly speeds things up."

    Does this parallel run opens up multiple DB connections or it will be a single connection handling these multiple queries?

    Thanks.
  • One suggestion I have would be to confirm that all configured data sources are consistently reachable. In rare cases, I have seen the connection pool get exhausted as a result of a configured data source being unreachable (for example, because it was decommissioned, but never removed from the list of data sources in the admin console).