<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to 486: Posgtres-xc 1.2 loses connection when defining many tables</title><link>https://sourceforge.net/p/postgres-xc/bugs/486/</link><description>Recent changes to 486: Posgtres-xc 1.2 loses connection when defining many tables</description><atom:link href="https://sourceforge.net/p/postgres-xc/bugs/486/feed.rss" rel="self"/><language>en</language><lastBuildDate>Thu, 10 Jul 2014 17:33:18 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/postgres-xc/bugs/486/feed.rss" rel="self" type="application/rss+xml"/><item><title>#486 Posgtres-xc 1.2 loses connection when defining many tables</title><link>https://sourceforge.net/p/postgres-xc/bugs/486/?limit=25#7194</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;I'm having the very same issue running 1.1-2ubuntu2 (installed from apt repo) and am using Ubuntu 14.04 Trusty.&lt;/p&gt;
&lt;p&gt;Each VM has 4GB of RAM with 36GB of Disk. I've set my VM's to overcommit memory to 2, and have the shared memory cranked up to around 3GB. &lt;/p&gt;
&lt;p&gt;Running our DDL script, exported from a vanilla postgres database, it hits the connection limit about 2/3 of the way through, then fails with "PANIC: sorry, too many clients already.&lt;br /&gt;
&lt;/p&gt;
&lt;p&gt;Issuing a select on pg_stat_activity shows the only connection is my psql connection. I've tried cranking up max_connections and max_pool_size with no luck. max_pool_size is set to the number of nodes * max_connections as recommended. I'm currently trying to dig using strace and gdb, but haven't run against anything yet that is giving me a clue as to what the problem might be. &lt;/p&gt;
&lt;p&gt;I also tried loading a sample database from the postgres wiki (Booktown). It loads with out running into this specific issue (although not error free). Since my cluster environment is prototype only at this point, and behind our fortress, I don't have pg_hba locked down. &lt;/p&gt;
&lt;p&gt;Lastly, issuing a ps command and search doesn't show anything abnormal. My config is setup using pgxc_ctl. &lt;/p&gt;
&lt;p&gt;This one has me scratching my head...&lt;/p&gt;
&lt;p&gt;Below is some stat output from strace (if that's helpful). I notice the top hits have to do with shared memory. Is it possible shared memory is getting corrupted? Hitting it's limit (it's already set to a healthy amount already based on available RAM)?&lt;/p&gt;
&lt;p&gt;^CProcess 25970 detached&lt;br /&gt;
% time     seconds  usecs/call     calls    errors syscall&lt;/p&gt;
&lt;hr /&gt;
&lt;p&gt;40.58    0.008323        8323         1           shmctl&lt;br /&gt;
 32.25    0.006616         441        15           clone&lt;br /&gt;
 16.61    0.003407        3407         1           shmdt&lt;br /&gt;
  3.09    0.000633          25        25           wait4&lt;br /&gt;
  2.41    0.000495          29        17        14 select&lt;br /&gt;
  0.88    0.000180           3        64           rt_sigprocmask&lt;br /&gt;
  0.86    0.000176           7        27           write&lt;br /&gt;
  0.56    0.000114           1       123           semctl&lt;br /&gt;
  0.34    0.000069          69         1           fsync&lt;br /&gt;
  0.32    0.000065           5        12           kill&lt;br /&gt;
  0.31    0.000064           4        15        14 rt_sigreturn&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Daniel</dc:creator><pubDate>Thu, 10 Jul 2014 17:33:18 -0000</pubDate><guid>https://sourceforge.netc7a99152c0a1367995f1cef8a0c2e53238566149</guid></item><item><title>#486 Posgtres-xc 1.2 loses connection when defining many tables</title><link>https://sourceforge.net/p/postgres-xc/bugs/486/?limit=25#0f67</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;The guest configuration is the same for all 4 VMs running on ESXi 5.&lt;/p&gt;
&lt;p&gt;Ubuntu 14 server&lt;/p&gt;
&lt;p&gt;4 vCPUs and 8GB real 128GB Disk (each has dedicated drive)&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Mike</dc:creator><pubDate>Fri, 27 Jun 2014 16:09:49 -0000</pubDate><guid>https://sourceforge.netf4cd8f57d941e45ee486769a55e6be1408ffb23d</guid></item><item><title>#486 Posgtres-xc 1.2 loses connection when defining many tables</title><link>https://sourceforge.net/p/postgres-xc/bugs/486/?limit=25#c483</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Also, on each of the guests I did the following:&lt;/p&gt;
&lt;p&gt;sysctl -w kernel.shmmax=17179869184&lt;br /&gt;
sysctl -w kernel.shmall=4194304&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Mike</dc:creator><pubDate>Fri, 27 Jun 2014 16:05:34 -0000</pubDate><guid>https://sourceforge.netd961d8f5a5f07322fa4ee45f5b56e47ac1aa550b</guid></item><item><title>#486 Posgtres-xc 1.2 loses connection when defining many tables</title><link>https://sourceforge.net/p/postgres-xc/bugs/486/?limit=25#7b74</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;I'm also seeing this as well:&lt;br /&gt;
psql:cnaf_pgxc_ddl.sql:1687: PANIC:  sorry, too many clients already&lt;br /&gt;
PANIC:  sorry, too many clients already&lt;br /&gt;
psql:cnaf_pgxc_ddl.sql:1687: connection to server was lost&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Mike</dc:creator><pubDate>Fri, 27 Jun 2014 15:59:54 -0000</pubDate><guid>https://sourceforge.netf161c97e53ddef323ae506db5688a094f7884281</guid></item><item><title>Posgtres-xc 1.2 loses connection when defining many tables</title><link>https://sourceforge.net/p/postgres-xc/bugs/486/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;When defining a large number of tables pgxc receives the following messages:&lt;br /&gt;
LOG:  failed to connect to Datanode&lt;br /&gt;
WARNING:  can not connect to node 16385&lt;br /&gt;
ERROR:  Failed to get pooled connections&lt;br /&gt;
LOG:  failed to acquire connections&lt;br /&gt;
WARNING:  unexpected EOF on datanode connection&lt;br /&gt;
ERROR:  sorry, too many clients already&lt;/p&gt;
&lt;p&gt;I have attached a detailed explanation of the installation, configuration and a tzg file containing the ddl and logs from the coordinator and logs from the data nodes.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Mike</dc:creator><pubDate>Fri, 27 Jun 2014 15:31:07 -0000</pubDate><guid>https://sourceforge.net7a3502862008071e4bb7ec4b32910a76a63c9c62</guid></item></channel></rss>