# Haproxy 2.1 use too much memory more than 200mb when no connections

**URL:** https://discourse.haproxy.org/t/haproxy-2-1-use-too-much-memory-more-than-200mb-when-no-connections/6447
**Category:** Help!
**Created:** [April 7, 2021, 12:18pm UTC](https://discourse.haproxy.org/t/haproxy-2-1-use-too-much-memory-more-than-200mb-when-no-connections/6447 "2021-04-07T12:18:00Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![moots](https://avatars.discourse-cdn.com/v4/letter/m/46a35a/32.png) [@moots](https://discourse.haproxy.org/u/moots)
#### Post date: [April 7, 2021, 12:18pm UTC](https://discourse.haproxy.org/t/haproxy-2-1-use-too-much-memory-more-than-200mb-when-no-connections/6447/1 "2021-04-07T12:18:00Z")

</div>

i used haproxy 1.6.9 before, which only use A few hundred KB when no connections.  
recently, i upgrade haproxy to 2.1 with openssl 1.1.1i. when i use the same configuration. Memory usage soared to 200MB

> global  
> #maxconn 2000000  
> maxconn 2000  
> log 127.0.0.1 local1  
> #user vyos  
> #group users  
> uid 1000  
> gid 100  
> daemon  
> #stats socket /home/vyos/zvr/lb/sock/9e8536eed4504b49920292f2cf1cff67.sock user vyos  
> stats socket /home/vyos/zvr/lb/sock/9e8536eed4504b49920292f2cf1cff67.sock gid 100 uid 1000  
> ulimit-n 4000100
> 
> defaults  
> log global  
> option dontlognull  
> option http-server-close
> 
> listen 9e8536eed4504b49920292f2cf1cff67
> 
> ```
> mode tcp
> 
> timeout client 60s
> timeout server 60s
> timeout connect 60s
> 
> balance roundrobin
> bind 192.168.31.215:8080
> 
> server nic-192.168.165.250 192.168.165.250:9090 check port 9090 inter 5s rise 2 fall 2
> 
> ```
