Many Thanks.

But having said so, does it mean that Saxon-B has this known bug of throwing "out of memory" exception on large source documents? And the only solution to this is to upgrade to the commercial version i.e. Saxon-EE 9.3?
  
Regards
Rehan Younus



From: Michael Kay <mike@saxonica.com>
To: saxon-help@lists.sourceforge.net
Sent: Saturday, 13 August 2011, 13:32
Subject: Re: [saxon] Out of Memory error in Saxon-B

On .NET, Saxon will use as much memory as the operating system is prepared to give it.

Generally the amount of memory needed for a transformation is around 5 times the source document size (but it can be up to 10 times depending on circumstances).

If you are going to transform source documents about 100Mb or so, take a look at the streaming facilities in Saxon-EE 9.3. It will only work for some kinds of transformation, and will involve writing your code in a different way, but it does mean you can handle input documents of any size.

Michael Kay
Saxonica

On 12/08/2011 11:46, Rehan wrote:
Thanks for your reply, Andrew.

Actually I am using the .Net version of Saxon. Does it have the same switch as well?
  
Regards
Rehan Younus



From: Andrew Welch <andrew.j.welch@gmail.com>
To: Rehan <rehan81@yahoo.com>; Mailing list for the SAXON XSLT and XQuery processor <saxon-help@lists.sourceforge.net>
Sent: Friday, 12 August 2011, 15:34
Subject: Re: [saxon] Out of Memory error in Saxon-B

Increase the amount of memory you give the jvm using the xmx switch.

How you do that depends on how you are running the transform, but usually its:

java -xmx1024m .......


On 12 August 2011 11:13, Rehan <rehan81@yahoo.com> wrote:
> I am using Saxon-B version 8.9.0.3, it was working fine for me until
> recently when my XML file size started to grow beyond 250 MB, now Saxon has
> started giving out of memory exceptions? Is this a know issue?
>
> What is the resolution to this? Are there any upper limits to the xml file
> size being processed?
>
> What if I use Saxon-B version 9.1.0.8, is that issue fixed in this version?
>
> Many Thanks
>
> Regards
> Rehan
>
>
> ------------------------------------------------------------------------------
> Get a FREE DOWNLOAD! and learn more about uberSVN rich system,
> user administration capabilities and model configuration. Take
> the hassle out of deploying and managing Subversion and the
> tools developers use with it.
> http://p.sf.net/sfu/wandisco-dev2dev
> _______________________________________________
> saxon-help mailing list archived at http://saxon.markmail.org/
> saxon-help@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/saxon-help
>



--
Andrew Welch
http://andrewjwelch.com


------------------------------------------------------------------------------ Get a FREE DOWNLOAD! and learn more about uberSVN rich system, user administration capabilities and model configuration. Take the hassle out of deploying and managing Subversion and the tools developers use with it. http://p.sf.net/sfu/wandisco-dev2dev
_______________________________________________ saxon-help mailing list archived at http://saxon.markmail.org/ saxon-help@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/saxon-help


------------------------------------------------------------------------------
FREE DOWNLOAD - uberSVN with Social Coding for Subversion.
Subversion made easy with a complete admin console. Easy
to use, easy to manage, easy to install, easy to extend.
Get a Free download of the new open ALM Subversion platform now.
http://p.sf.net/sfu/wandisco-dev2dev
_______________________________________________
saxon-help mailing list archived at http://saxon.markmail.org/
saxon-help@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/saxon-help