<div dir="ltr">Hi,<div><br></div><div>After integrating pgpool with the app server, we tested by running load tests with 25 concurrent users.</div><div>The following error comes multiple times while test running:</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">ERROR:  Sorry, too many clients already<br>LOG:  backend [1]: WARNING: there is already a transaction in progress</blockquote><div><br></div><div>Set the following in pgpool:<br>connection_cache=off<br>child_life_time = 5min<br>num_init_children=120<br>max_pool=1<br></div><div><br></div><div>There are master-slave postgre DB servers with max_connections=250.</div><div>There are 2 appservers with XADatasource max pool size 60, pointing to the Pgpool server.</div><div>The application connects to 4 databases but only one database is used 90%.</div><div><br></div><div>When we point directly to the master DB server, all works fine. But when connected via the Pgpool server, these errors come intermittently.</div><div><br></div><div>Is it because Pgpool connections are not getting released and are all in active state?</div><div>Is there any way the excess connection requests in the queue instead of throwing errors so that it will be processed once existing connections are released?</div><div>Anyone please help me identify the bottleneck.</div><div><div><br></div>Thanks!<br></div></div>