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 ?
openvpn server memory leak with more than 3000 connections
Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech
-
- OpenVpn Newbie
- Posts: 9
- Joined: Wed Feb 26, 2020 6:21 am