Re: memory growing when using SSL connections

2010-01-21 Thread David
x27;s help and suggestions. Regards, David -- From: "Jeremy Hunt" Sent: Tuesday, January 12, 2010 6:14 PM To: ; Subject: Re: memory growing when using SSL connections David wrote: [safeTgram (safetgram-in) receive status: NOT encryp

Re: memory growing when using SSL connections

2010-01-13 Thread Jeremy Hunt
David wrote: [safeTgram (safetgram-in) receive status: NOT encrypted, NOT signed.] After running my app for a couple of iterations for over an hour, I get the following: [11:45:42]10 file=stack.c, line=125, thread=15418, number=20, address=20077768 ... 868 bytes leaked in 24 chunks

Re: memory growing when using SSL connections

2010-01-12 Thread David
u say, I should use a more general tool for checking this stuff. Thanks, David -- From: "Jeremy Hunt" Sent: Tuesday, January 12, 2010 6:14 PM To: ; Subject: Re: memory growing when using SSL connections David wrote: [safeTgra

Re: memory growing when using SSL connections

2010-01-12 Thread David
-- From: "Dr. Stephen Henson" Sent: Monday, January 11, 2010 7:17 PM To: Subject: Re: memory growing when using SSL connections On Mon, Jan 11, 2010, David wrote: Kevin, Valgrind apparently is a Linux based tool, but I'm having this problem on AIX. I actually have a si

Re: memory growing when using SSL connections

2010-01-11 Thread Dr. Stephen Henson
On Mon, Jan 11, 2010, David wrote: > Kevin, > > Valgrind apparently is a Linux based tool, but I'm having this problem on > AIX. I actually have a simple memory leak finder that showed that SSL did > not have an obvious memory leak. It looks like most, if not all memory > management functions f

Re: memory growing when using SSL connections

2010-01-11 Thread David
alled PURIFYPLUS for detecting memory leaks. Perhaps I'll see if I can run it with the application and see if it shows up anything. Thanks, David -- From: "Kevin Regan" Sent: Monday, January 11, 2010 3:19 PM To: Subject: RE: memory

RE: memory growing when using SSL connections

2010-01-11 Thread Kevin Regan
, 2010 11:48 AM To: openssl-users@openssl.org Subject: Re: memory growing when using SSL connections Hi Jeremy, I did try removing the CRYPTO_cleanup_all_ex_data() call, based on Dr. Henson's response, but I still have the same problem. I bypassed the SSL calls and used pure telnet

Re: memory growing when using SSL connections

2010-01-11 Thread David
t see this problem when running on a Solaris box. Perhaps, it has something to do with the AIX environment. Regards, David -- From: "Jeremy Hunt" Sent: Sunday, January 10, 2010 6:56 PM To: Subject: Re: memory growing when using SSL conne

Re: memory growing when using SSL connections

2010-01-11 Thread Jeremy Hunt
Hi David et al, On reading the responses so far two new thoughts occur to me: 1. In view of Dr Henson's response, I wonder if removing the CRYPTO_cleanup_all_ex_data() call in your loop will fix the problem. Perhaps reusing the context structure after calling it may have the reverse effect.

Re: memory growing when using SSL connections

2010-01-08 Thread Dr. Stephen Henson
On Fri, Jan 08, 2010, David wrote: > Thanks. Are there any others which are mentioned under > http://www.openssl.org/support/faq.html#PROG13 which I should be wary of > for similar reasons? > Yes all of those should really only be called once on application exit. As it says: "These internal tab

Re: memory growing when using SSL connections

2010-01-08 Thread David
ubject: Re: memory growing when using SSL connections On Thu, Jan 07, 2010, David wrote: Hi, I'm using tn3270 sessions running over SSL. I may have up to 124 sessions activated concurrently, although I plan to get up to 250 sessions at some point. Whenever the sessions are stopped a

Re: memory growing when using SSL connections

2010-01-08 Thread Dr. Stephen Henson
On Thu, Jan 07, 2010, David wrote: > Hi, > > I'm using tn3270 sessions running over SSL. I may have up to 124 sessions > activated concurrently, although I plan to get up to 250 sessions at some > point. > > Whenever the sessions are stopped and restarted, I notice intermittently that > memo

Re: memory growing when using SSL connections

2010-01-08 Thread David
Jeremy, I'm not sure if I've tried the EVP_cleanup() routine. I'll give it a shot. Thanks, David -- From: "Jeremy Hunt" Sent: Thursday, January 07, 2010 5:34 PM To: ; Subject: Re: memory growing when using SSL connec

Re: memory growing when using SSL connections

2010-01-08 Thread David
ction per ctx and freeing both ssl and ctx after use, but the results didn't change. Regards, David -- From: "Jeremy Hunt" Sent: Thursday, January 07, 2010 5:20 PM To: Cc: Subject: Re: memory growing when using SSL connections Hi

Re: memory growing when using SSL connections

2010-01-08 Thread Jeremy Hunt
Hi David, After reading this [http://www.nlnetlabs.nl/downloads/publications/hsm/hsm_node21.html] , it occurs to me that you might need EVP_cleanup() too. You might consider his clean_up() routine in general, or at least consider his comments on it. I think it is true to say that for ever

Re: memory growing when using SSL connections

2010-01-08 Thread Jeremy Hunt
Hi David, Off the top of my head I notice that you do not call this as part of the cleanup: SSL_CTX_free() [ http://www.openssl.org/docs/ssl/SSL_CTX_free.html# ] There is also this: [ http://www.openssl.org/support/faq.html#PROG13 ] Regards, Jeremy David wrote: *[safeTgram (safetgram-in

memory growing when using SSL connections

2010-01-07 Thread David
Hi, I'm using tn3270 sessions running over SSL. I may have up to 124 sessions activated concurrently, although I plan to get up to 250 sessions at some point. Whenever the sessions are stopped and restarted, I notice intermittently that memory grows in multiples of 4K bytes. I'm running on