Hi Dmitry,
> I am using haproxy-1.5.4 on FreeBSD-10.
>
> Upon startup, it looks like this:
> PID USERNAME THR PRI NICE SIZE RES STATE C TIME WCPU COMMAND
> 8459 www 1 37 0 86376K 28824K CPU16 16 0:16 26.56% haproxy
>
> (about 80MB RES)
Its 80MB SIZE and 28M RES here.
> PID USERNAME THR PRI NICE SIZE RES STATE C TIME WCPU COMMAND
> 82720 www 1 36 0 244M 108M CPU29 29 29.2H 26.95% haproxy
>
> (244MB RES).
Its 244M SIZE and 108M RES. So 108M of real RAM used here.
> When I do reload, I see that old process is in swread state for some time, and
> swap usage decreases for about 150MB when old process finishes.
>
> Does it mean memory leak is somewhere? Any additional information I could
> provide will be useful?
Share you configuration, especially maxconn related stuff, the output of
"haproxy -vv" and possibly "show info;show stat;show pools"
from the unix admin socket.
I don't think that its a memory leak, but haproxy its just allocating
what it can according to its maxconn values and doesn't necessarily
free all those buffers when there aren't used anymore.
Regards,
Lukas