Sender: marko@...1042... References: <483DA4E4.1030308@...1104...> <483DC794.3090302@...1104...> Date: 29 May 2008 00:57:30 +0300 In-Reply-To: <483DC794.3090302@...1104...> Message-ID: MIME-Version: 1.0 From: Marko Rauhamaa Subject: Re: [Openvpn-devel] Memory of server keeps increasing with key negotiations List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit To: Martin Gadbois Cc: openvpn-devel@lists.sourceforge.net Martin Gadbois : > I've looked at the code (Yeah! Open Source) and could not see any > lists, or code that accumulates data, apart from gc_*(). There's this weird scheme by which you prepare a memory pool with gc_new(). Memory keeps on accumulating in the pool with alloc_buf_gc() (in print_sockaddr_ex(), for example). The memory is not freed until the whole pool is destroyed with gc_free(). See if there are repeated messages in your log file. It was those log messages that caused my router to run out of memory over a couple of weeks, although there must be other similar problem sources. Marko