<div dir="ltr"><div class="gmail-gs" style="margin:0px;padding:0px 0px 20px;width:875.333px;font-family:Roboto,RobotoDraft,Helvetica,Arial,sans-serif;font-size:medium"><div class="gmail-"><div id="gmail-:2ux" class="gmail-ii gmail-gt" style="font-size:12.8px;direction:ltr;margin:8px 0px 0px;padding:0px"><div id="gmail-:2uw" class="gmail-a3s gmail-aXjCH" style="overflow:hidden;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:small;line-height:1.5;font-family:Arial,Helvetica,sans-serif"><div dir="ltr"><div>Hi ,</div><div><br></div><div>I  am using postgresql 10.3 and pgpool 3.7 to do load balancing and achieving the request of opening 1000+ sessions with postgresql.</div><div>I have configured stream replication and load balancing (master + 3 slave) using pgpool. Load balancing is working fine.</div><div>My application is connected with pgpool .</div><div>Issue is happening after running my script to open 1000 connections. It is running some time and slowly idle process is  increasing constantly in DB and because of that postgreDB is crashing . Below is setting details</div><div>In postgresql.conf</div><div>max_connections : 1800</div><div><br></div><div>IN pgpool.con</div><div dir="ltr" class="gmail-m_6472489496496541581gmail_signature"><div dir="ltr"><p>num_init_children = 1400</p><p>max_pool = 1</p><p>child_life_time = 60</p><div><div>child_max_connections = 0</div><div> connection_life_time = 60</div></div><div><br></div><div>Please let me know how to achieve my requirement  and why idle connections are not getting closed</div></div></div></div><div class="gmail-yj6qo"></div><div class="gmail-adL"></div></div></div><div class="gmail-hi" style="border-bottom-left-radius:1px;border-bottom-right-radius:1px;padding:0px;width:auto;background:rgb(242,242,242);margin:0px"></div></div></div><br class="gmail-Apple-interchange-newline"></div>