On Sat, Sep 18, 2010 at 03:40:39PM +0200, R.Nagy József wrote: > > $ socat readline unix-connect:/tmp/haproxy.sock > > prompt > > > show info > > > show stat > > > show sess > > > show table > > > show table mySite-webfarm > > > >I'm particularly interested in those outputs, they will make it easier > >to find if we're facing a memory corruption, a resource shortage or any > >such trouble. If it's easier for you, you can also chain all the commands > >at once and avoid long copy-pastes : > Okay, just did this (output below), but please confirm if you want me > to perform this when haproxy died already.
Yes, please try to run them when it dies (if you can and if it is not too much to ask to make it die again). Right now the output does not show anything abnormal. (...) > > terminal2$ killall -QUIT haproxy > > > >Haproxy will then dump all of its pools statistics to the stderr output. > >You don't need to do that in production in fact, you can do that on a > >test machine, because the output only depends on the binary itself and > >not on the environment. > Done, result: > /usr/local/sbin/haproxy.new -f /usr/local/etc/haproxy.test -db > Dumping pools usage. > - Pool pipe (16 bytes) : 0 allocated (0 bytes), 0 used, 2 users [SHARED] > - Pool sig_handler (32 bytes) : 5 allocated (160 bytes), 5 used, 1 > users [SHARED] > - Pool capture (64 bytes) : 0 allocated (0 bytes), 0 used, 1 users > [SHARED] > - Pool task (80 bytes) : 4 allocated (320 bytes), 3 used, 2 users > [SHARED] > - Pool hdr_idx (832 bytes) : 1 allocated (832 bytes), 0 used, 2 > users [SHARED] > - Pool session (960 bytes) : 1 allocated (960 bytes), 0 used, 1 > users [SHARED] > - Pool requri (1024 bytes) : 1 allocated (1024 bytes), 0 used, 1 > users [SHARED] > - Pool buffer (16480 bytes) : 2 allocated (32960 bytes), 0 used, 1 > users [SHARED] > Total: 8 pools, 36256 bytes allocated, 400 used. OK so your buffers are managed exactly as on linux, so this is not a problem of buffer reuse. (...) > Will mod code and recompile before testing through socks. Thank you! Best regards, Willy

