Well, as I said, I managed to sign a 20meg XML document in around 20 seconds
using the Apache library... using the options I gave you. Did you try them?

>>my own xml signature algorithm and i found that it consumes much less
memory<<

Really? Have you done the c14n bit? That's the step that gobbles up all the
memory.

-----Original Message-----
From: Martin Labarthe Dubois [mailto:[EMAIL PROTECTED]
Sent: 15 April 2004 17:02
To: [EMAIL PROTECTED]
Subject: Re: OUT OF MEMORY Exception, is it posible to sing a big XML
????


Hi, thanks for the answer.
Actually, the XML is about 8megs,

but i use
-Xmx1024m

after fully instanciating the org.w3c.dom.document, it goes up to
180megs,
and after start signing the org.w3c.dom.document, it goes up to
1000megs and crashes!

i started to develop my own xml signature algorithm and i found that it
consumes much less memory, so i think that there must be a way to fix the
API.

Thanks,
Martin



> Hi
>
> 8megs isn't big! :-)
>
> Try
>
> -Xms256m -Xmx256m
>
> I need to sign large XML documents. Little tiddlers (7k) I can sign in
> <1sec, 12meg documents take about 20s, however once I get to the maximum
> size I need to sign (around the 25megs mark) it churns away for ages
before
> finally throwing an out of memory exception. My investigations suggests
this
> is an inherent limitation of a DOM based solution (which is pretty much
> every software-based signer, including Apache). The killer is actually the
> c14n transformation- not the hashing or signing.
>
> How did I solve it? By using a device that does XML transformations in
> hardware :-) Ask me off list if you want more information.
>
> Edward
>
> -----Original Message-----
> From: Martin Labarthe Dubois [mailto:[EMAIL PROTECTED]
> Sent: 14 April 2004 17:38
> To: [EMAIL PROTECTED]
> Subject: OUT OF MEMORY Exception, is it posible to sing a big XML ????
>
>
> Hello,
>
> I need to sign a bigXML (aprox. 8900 KB), but I receive an OutOfMemory
> Exception,
>
> i set the JVM -Xmx to
> -Xmx1024m
>
> but I still receive the error, is there a way to avoid this problem???
>
>
> Thanks,
> Martin
>
>

Reply via email to