Hi William, Thank you very much, I've applied your patch and it fixed issue:
ps aux | grep hap USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND haproxy 37601 0.1 0.5 2509548 165352 ? Ss 11:35 0:00 /usr/sbin/haproxy -f /etc/haproxy/haproxy.cfg -p /var/run/haproxy.pid -D - 2017-11-28 11:17 GMT+01:00 William Lallemand <[email protected]>: > Hi, > > On Tue, Nov 28, 2017 at 09:08:59AM +0100, Maciej Zdeb wrote: > > Hi Willy, > > > > Thanks for your response. In change > > http://git.haproxy.org/?p=haproxy-1.8.git;a=commit;h= > 4f45bb9c461f462290b77bf2511badb7a4453c0a > > William made shctx more generic. Right now it's calculated: > > > > shctx = (struct shared_context *)mmap(NULL, sizeof(struct > shared_context) + > > extra + (maxblocks * (sizeof(struct shared_block) + blocksize)), > > > > before it was: > > > > shctx = (struct shared_context *)mmap(NULL, sizeof(struct > > shared_context)+(size*sizeof(struct shared_block)), > > > > Still, William is the best person to ask. :-) > > > > Thanks for the report, the bug was elsewhere, in fact the shctx was > initialized > for each ssl bind. > > Patch attached. > > -- > William Lallemand >

