<div dir="ltr"><div>Hi all!</div><div><br></div><div>We&#39;ve been using pgpool-ii for nearly 3 years, successfully, and we love it.</div><div><br></div><div>However, we&#39;re having some very, very strange issues when attempting to use Tomcat 6.x or 7.x to connect to pgpool.</div><div><br></div><div>We currently use PG 9.0, and native binary and WAL replication.</div><div><br></div><div>Specifically, our current set up looks like:</div><div>  AppServer1,2,3 -&gt; pgpool -&gt; db1, db2<br></div><div><br></div><div>We currently send 100% of the reads to db2, and use db1 for inserts only.</div><div><br></div><div>pgpool runs on port 5433.</div><div><br></div><div>We&#39;ve started deploying new appservers, and have found that they do not all connect to the pgpool instance.  No change in Tomcat version (we&#39;ve tried both Tomcat 6.x and 7.x), and using the same JDBC drivers.</div><div><br></div><div>I can connect to pgpool, using psql, from these machines - and it works perfectly.</div><div><br></div><div>However, when I start Tomcat, it hangs forever trying to connect to pgpool.</div><div><br></div><div>I can connect to pgpool using psql, from those machines - to port 5433 - without problems.  So, I&#39;m assuming it&#39;s not a firewall / network problem.</div><div><br></div><div>In trying to decode the problem, we set up a second pgpool, on one of the problematic machines - and continued having the same problem.</div><div><br></div><div>We then upgraded to this pgpool:</div><div>  pgpool-II-93-devel-3.3.2-1.rhel6.x86_64</div><div><br></div><div><div>FINE: Instantiating driver using class: org.postgresql.Driver [url=jdbc:postgresql://localhost:5433/scheduler?useUnicode=true&amp;characterEncoding=utf-8]</div><div>Oct 28, 2014 12:51:17 AM org.apache.tomcat.jdbc.pool.PooledConnection connectUsingDriver</div><div>FINE: Unable to connect to database.</div><div>org.postgresql.util.PSQLException: The connection attempt failed.</div></div><div>.....</div><div>.....</div><div><div>Caused by: java.io.EOFException</div><div>        at org.postgresql.core.PGStream.ReceiveChar(PGStream.java:274)</div><div>        at org.postgresql.core.v3.ConnectionFactoryImpl.doAuthentication(ConnectionFactoryImpl.java:269)</div><div>        at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:106)</div><div>        ... 93 more</div></div><div><br></div><div>Any ideas?</div><div><br></div><br clear="all"><div><div class="gmail_signature"><div dir="ltr"><span style="font-size:13px;background-color:rgb(255,255,255)">--<br>Anthony Presley</span></div></div></div><font face="yw-bcbf2eb3a62359f40a40b4dc8b5023d159817a5b-b93efa24f1baf7164c2ace03e3f9d743--tob" style></font><img src="https://t.yesware.com/t/bcbf2eb3a62359f40a40b4dc8b5023d159817a5b/b93efa24f1baf7164c2ace03e3f9d743/spacer.gif" style="border: 0; width: 0px; height: 0px;" width="0" height="0"><img src="http://t.yesware.com/t/bcbf2eb3a62359f40a40b4dc8b5023d159817a5b/b93efa24f1baf7164c2ace03e3f9d743/spacer.gif" style="border: 0; width: 0px; height: 0px;" width="0" height="0"></div>