<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic PostgreSQLserver connections left open in Administration and Deployment</title>
    <link>https://communities.sas.com/t5/Administration-and-Deployment/PostgreSQLserver-connections-left-open/m-p/331002#M7361</link>
    <description>&lt;P&gt;Anyone have issues with conections left open? When a process failes there are left over process still active from time to time that you cant match to the corresponding folder in the work folder. However there a ton of posgreSqlServer processes that are left running that i can not identify thier source and if they are orphaned processes.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am hoping someone can share how they deal with these orphaned connections.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;thanks,&lt;BR /&gt;Lane&lt;/P&gt;</description>
    <pubDate>Wed, 08 Feb 2017 22:03:48 GMT</pubDate>
    <dc:creator>goitzy</dc:creator>
    <dc:date>2017-02-08T22:03:48Z</dc:date>
    <item>
      <title>PostgreSQLserver connections left open</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/PostgreSQLserver-connections-left-open/m-p/331002#M7361</link>
      <description>&lt;P&gt;Anyone have issues with conections left open? When a process failes there are left over process still active from time to time that you cant match to the corresponding folder in the work folder. However there a ton of posgreSqlServer processes that are left running that i can not identify thier source and if they are orphaned processes.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am hoping someone can share how they deal with these orphaned connections.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;thanks,&lt;BR /&gt;Lane&lt;/P&gt;</description>
      <pubDate>Wed, 08 Feb 2017 22:03:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/PostgreSQLserver-connections-left-open/m-p/331002#M7361</guid>
      <dc:creator>goitzy</dc:creator>
      <dc:date>2017-02-08T22:03:48Z</dc:date>
    </item>
    <item>
      <title>Re: PostgreSQLserver connections left open</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/PostgreSQLserver-connections-left-open/m-p/331103#M7371</link>
      <description>&lt;P&gt;Hello Lane,&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/37337"&gt;@goitzy&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would need some additional information. Some questions that raise on my mind are:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Your PostgreSQL database is the WIP database from SAS, or an external PostgreSQL database that you are connecting with SAS/ACCESS to PostreSQL or SAS/ACCESS to ODBC?&lt;/LI&gt;
&lt;LI&gt;And the open connections you mention, ydo you see them within the administration view within PostgreSQL/pgAdmin, or in the Operating System?&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The last question, I am dropping it because one of the characteristics of PostreSQL, and some people get consused because of it, is that this is a multi-threaded database, with a pool of connections reflected on several running psql processes, which is the expected behaviour on a multi-threaded database.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Feb 2017 09:39:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/PostgreSQLserver-connections-left-open/m-p/331103#M7371</guid>
      <dc:creator>JuanS_OCS</dc:creator>
      <dc:date>2017-02-09T09:39:02Z</dc:date>
    </item>
    <item>
      <title>Re: PostgreSQLserver connections left open</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/PostgreSQLserver-connections-left-open/m-p/333870#M7547</link>
      <description>&lt;P&gt;&lt;SPAN&gt;WIP database from SAS or SAS/ACCESS to ODBC (SQLServer) I am guessing.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;We do not have any PostdreSQL in house so it would be all native to SAS.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I see the conections via OS task manager.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;It could be connections for multithreaded application but the list never shrinks so processes leave either orphans or never close.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Feb 2017 18:11:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/PostgreSQLserver-connections-left-open/m-p/333870#M7547</guid>
      <dc:creator>goitzy</dc:creator>
      <dc:date>2017-02-17T18:11:11Z</dc:date>
    </item>
    <item>
      <title>Re: PostgreSQLserver connections left open</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/PostgreSQLserver-connections-left-open/m-p/334282#M7563</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/37337"&gt;@goitzy&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;in that case, that is perfectly normal. From the PostreSQL's manual (&amp;nbsp;&lt;A href="https://www.postgresql.org/docs/current/static/tutorial-arch.html" target="_blank"&gt;https://www.postgresql.org/docs/current/static/tutorial-arch.html&lt;/A&gt; &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;The PostgreSQL server can handle multiple concurrent connections from clients. &lt;BR /&gt;To achieve this it starts ("forks") a new process for each connection.&lt;BR /&gt;From that point on, the client and the new server process communicate without intervention by the original postgres process. &lt;BR /&gt;Thus, the master server process is always running, waiting for client connections, whereas client and associated server processes come and go.&lt;/PRE&gt;</description>
      <pubDate>Mon, 20 Feb 2017 09:54:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/PostgreSQLserver-connections-left-open/m-p/334282#M7563</guid>
      <dc:creator>JuanS_OCS</dc:creator>
      <dc:date>2017-02-20T09:54:02Z</dc:date>
    </item>
    <item>
      <title>Re: PostgreSQLserver connections left open</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/PostgreSQLserver-connections-left-open/m-p/334406#M7572</link>
      <description>&lt;P&gt;I find it disturbing that i have 153 prostgres connections using on average 2,644 k of memory per&amp;nbsp;connection&amp;nbsp;running at the moment. This is a waste of resources in my opinion and there seems to be no recycling of these connections.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Feb 2017 18:13:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/PostgreSQLserver-connections-left-open/m-p/334406#M7572</guid>
      <dc:creator>goitzy</dc:creator>
      <dc:date>2017-02-20T18:13:12Z</dc:date>
    </item>
    <item>
      <title>Re: PostgreSQLserver connections left open</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/PostgreSQLserver-connections-left-open/m-p/334422#M7573</link>
      <description>&lt;P&gt;The Web Application Servers have a connection pool they allocate and re-use connections from, is it possible that's what you're seeing? They should clean up when you shut down the web application server&amp;nbsp;though. The way the postgres server works, you'll see a separate process created for each incoming connection, so they may appear orphaned on the database server side, but the java process that's using them is still running.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Feb 2017 18:52:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/PostgreSQLserver-connections-left-open/m-p/334422#M7573</guid>
      <dc:creator>dpage</dc:creator>
      <dc:date>2017-02-20T18:52:49Z</dc:date>
    </item>
    <item>
      <title>Re: PostgreSQLserver connections left open</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/PostgreSQLserver-connections-left-open/m-p/334423#M7574</link>
      <description>I am seeing these connections on the Compute server and the environment that im using does not have any users currently in it (staging) but we are running data loads via odbc using DI Studio. I would imaging a reboot would take care of most of them but knowing the reason they are they are persistent would make me feel better</description>
      <pubDate>Mon, 20 Feb 2017 18:56:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/PostgreSQLserver-connections-left-open/m-p/334423#M7574</guid>
      <dc:creator>goitzy</dc:creator>
      <dc:date>2017-02-20T18:56:48Z</dc:date>
    </item>
    <item>
      <title>Re: PostgreSQLserver connections left open</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/PostgreSQLserver-connections-left-open/m-p/334427#M7575</link>
      <description>&lt;P&gt;Can you confirm the other endpoint of the connection? The database may be on the compute tier, but the initiant may be on another machine (so you'd see no corresponding local process for it besides the postgres process) The Web Application server keeps a pool of connections open at all times, user activity or not. I think if you shut the web application server down as an experiment you'd see them go away, but if that's what you're seeing, it's expected.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Feb 2017 18:59:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/PostgreSQLserver-connections-left-open/m-p/334427#M7575</guid>
      <dc:creator>dpage</dc:creator>
      <dc:date>2017-02-20T18:59:51Z</dc:date>
    </item>
  </channel>
</rss>

