<p>Hi,</p>
<div>I&#39;m checking pgpool-II load-balance mode with Streaming Replication.<br>and I found strange behavior.<br>when I specified non-existing user on sr_check_user and health_check_user,<br>pgpool-II seems to use a lot of memory.</div>

<div>(pgpool-II 3.1.3 and pgpool-II 3.2.0 are same behavior)</div>
<p>I put logging code in pool_stream.c(line 237) for investigating<br>the reason.<br>---<br>237: pool_log(&quot;%d = %d + %d&quot;, req_size, cp-&gt;len, len);<br>---</p>
<p>then I got embeded log message and error message bellow.<br>-------------------------------------------------------------------<br>2012-10-02 21:06:25 LOG:   pid 31370: 1178686607 = 82 + 1178686525<br>2012-10-02 21:06:25 ERROR: pid 31370: pool_read2: failed to realloc<br>
-------------------------------------------------------------------</p>
<p>the argument len for pool_read2 is very large and it results in<br>this problem.</p>
<p>pgpool could not reallocate any memory, because my machine is<br>virtual machine(RHEL5 i386 on VMWareServer) and assined memory is 256MB.<br>but when I run pgpool on a machine having a lot of memory, I think<br>it wolud happen.</p>

<p>is this intended thing ?</p>
<p>regards,</p>
<p>----<br>Tomonari Katsumata<br></p>