openvpn server memory leak with more than 3000 connections

This forum is for general conversation and user-user networking.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Post Reply
bhandari_nikhil
OpenVpn Newbie
Posts: 9
Joined: Wed Feb 26, 2020 6:21 am

openvpn server memory leak with more than 3000 connections

Post by bhandari_nikhil » Mon Apr 13, 2020 2:10 pm

I am on OpenVPN 2.4.7. I created about 3000 connections and they came up fine with only about 190MB memory usage for the openvpn process. The memory usage was minimal. But then I restarted the openvpn process and I faced these problems:

1) I saw my memory usage shoot up to 100% (of 6G) after the connections started coming up and eventually the process aborted after about 1000 connections. It should have consumed the 6GB memory in the first go. Why I am seeing it only after restarts ?

2) My max-clients is et to 5000 but sometimes it says the incoming connection will exceed the max-client limit of 5K. Why is that so when the no. of clients that actually came up were only < 1000 ? How does it calculate the active connections ?

3) Sometimes, new connections are not even started. It just keeps on getting P_CONTROL_HARD_RESET_CLIENT_V2 but does not go on to initiate the connection. But sometimes, the connections come up smoothly. What could be the reason ?

Post Reply