[xmlsec] FW: Free/Destroy versus Memory Leak

Ed Shallow ed.shallow at rogers.com
Mon Feb 20 12:12:32 PST 2006


Thanks again Amiler,

    Here are the results of this command:

xmlsec verify --crypto mscrypto --repeat nnnn --trusted-der
keys/upu-cacert.der inout/edsigned-enveloped.xml

started at roughly 9M ...

for nnnn = 1000  final Memory Usage  28M
for nnnn = 2000  final Memory Usage  54M
for nnnn = 3000  final Memory Usage  82M
for nnnn = 10000 final Memory Usage 242M and took 184 seconds

closer to 28K - 30K growth per request 

For the OpenSSL test:

xmlsec verify --repeat nnnn --trusted-der keys/upu-cacert.der
inout/edsigned-enveloped.xml

no matter what nnnn was set to, peak MemoryUsage stayed at 3856K with
no growth.

This is consistent with my Python/ctype findings.
Ed



--- Amiler Scumba <amiler_scumba at hotmail.com> wrote:

> Ed,
> 
> You should try running xmlsec.exe with --repeat option. If there is a
> memory 
> leak you should be able to see it when using large number of
> repetitions. 
> Task manager should be enough to spot it if there is a 40kb leak per 
> operation...
> 
> Bye.
>   Amiler
> 
> 
> >From: Aleksey Sanin <aleksey at aleksey.com>
> >To: ed.shallow at rogers.com
> >CC: xmlsec at aleksey.com
> >Subject: Re: [xmlsec] FW: Free/Destroy versus Memory Leak
> >Date: Mon, 20 Feb 2006 10:50:23 -0800
> >
> >
> >
> >Ed Shallow wrote:
> >>Yes I hear you. It would be irrefutable if we could reproduce it
> with a
> >>native "C" setup.
> >>
> >>However, we need one that makes multiple calls (signs, verifies,
> >>encrypts, decrypts) per process before exiting. The command line
> starts
> >>a new process for each operation and one cannot measure the memory
> >>profile.
> >
> >Well, if there is a memory leak then it would present somewhere
> >even if one does 4 sequential calls instead of one program that
> >does all of it.
> >
> >Aleksey
> >
> >_______________________________________________
> >xmlsec mailing list
> >xmlsec at aleksey.com
> >http://www.aleksey.com/mailman/listinfo/xmlsec
> 
> _________________________________________________________________
> Express yourself instantly with MSN Messenger! Download today it's
> FREE! 
> http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
> 
> 



More information about the xmlsec mailing list