Project

Profile

Help

Bug #2103

closed

High memory usage running with a MessageListener

Added by Bob Williams almost 10 years ago. Updated over 9 years ago.

Status:
Closed
Priority:
High
Assignee:
Category:
Performance
Sprint/Milestone:
-
Start date:
2014-07-11
Due date:
% Done:

100%

Estimated time:
Legacy ID:
Applies to branch:
Fix Committed on Branch:
Fixed in Maintenance Release:
Platforms:

Description

When running a transformation using Saxonica 9.4.0.6 we run into very high memory usage. Over 5.5 GB RAM for the attached input transformation. We are using .Net api and have code like this to run the transformation. We send it to a memory stream. The actual size of the input xml file is 62 MB and the transformed file it about 198 MB.

var builder = _processor.NewDocumentBuilder();

            var input = builder.Build(inputXml);

            var destination = new Serializer();

           
            var transformer = _executable.Load();

transformer.InputXmlResolver = _resolver;

            transformer.InitialContextNode = input;

using (var stream = new MemoryStream())

                {

                    destination.SetOutputStream(stream);

                    transformer.Run(destination);

                    xslTransformationResult.Transformation =

                        CreateTransformationDocument(stream);

                 }

Is there anything we can do on the Saxonica API to make the memory usage more efficient?


Files

FileForTransform.zip (11.2 MB) FileForTransform.zip Dtd file, xsl file and input file. Bob Williams, 2014-07-11 17:34
code-files.zip (8.6 KB) code-files.zip Bob Williams, 2014-07-11 22:12

Please register to edit this issue

Also available in: Atom PDF