XML Editor
Sign up for a WebBoard account Sign Up Keyword Search Search More Options... Options
Chat Rooms Chat Help Help News News Log in to WebBoard Log in Not Logged in
Show tree view Topic
Topic Page 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 Go to previous topicPrev TopicGo to next topicNext Topic
Postnext
Paul HermansSubject: question related to Java VM
Author: Paul Hermans
Date: 13 Apr 2006 07:45 AM
For doing a transformation on a large xml input file I need to augment the Java heap space.
However, if I add the parameters "-Xms512m -Xmx512m" to the JVM settings and I restart Stylus I do get the error that the VM is not initialised correctly.

I have also following question: if I run Saxon as an external XSLT processor which VM is used: the normal one or the external one.

Furthermore:
running a transformation using Saxon from within Stylus (NOT custom/external) took 17609000 milliseconds
The same transformation run with Saxon outside Stylus from the command line takes 16046 milliseconds
Is this huge difference due to profiling and backtracking?
Can I run a transformation without this overhead then?

Thanks for the help.

Postnext
Tony LavinioSubject: question related to Java VM
Author: Tony Lavinio
Date: 13 Apr 2006 10:05 AM
First, which Saxon? 8.7 or 6.5.5? And which release of Stylus
Studio? I'm going to guess a recent one, so the actual answers
might not be quite on target...

> However, if I add the parameters "-Xms512m -Xmx512m" to the JVM
> settings and I restart Stylus I do get the error that the VM is not
> initialised correctly.

What do you mean by that? Do you get an error?
Try just putting -Xmx512m; otherwise, you're telling the JVM
to reserve 1/2 gig of RAM+swap, which may be more than it is
available.

> I have also following question: if I run Saxon as an external XSLT
> processor which VM is used: the normal one or the external one.

"External". But if you run it from within Stylus Studio, don't
forget to account for the memory that Stylus Studio itself is
using, along with whatever other applications are loaded.

> Furthermore:
> running a transformation using Saxon from within Stylus (NOT
> custom/external) took 17609000 milliseconds
> The same transformation run with Saxon outside Stylus from the
> command line takes 16046 milliseconds
> Is this huge difference due to profiling and backtracking?

All backmapping overhead - unless you've explicitly enabled
profiling. The profiling overhead is huge if you've asked it
to trace every event; it's a pretty significant hit otherwise.
The only good news is that the hit is taken all at the end of
the transformation, in the step that analyzes and reports, so
the actual overhead during the transformation is insignificant.

> Can I run a transformation without this overhead then?

Not inside of Stylus Studio, except as an external process.

Posttop
Paul HermansSubject: question related to Java VM
Author: Paul Hermans
Date: 14 Apr 2006 07:41 AM
>First, which Saxon? 8.7 or 6.5.5?
Saxon 8.7

>And which release of Stylus
>Studio?

The latest Enterprise Release 2

>What do you mean by that? Do you get an error?

No it is shown in the about Stylus Studio window.

>Try just putting -Xmx512m; otherwise, you're telling the JVM
>to reserve 1/2 gig of RAM+swap, which may be more than it is
>available.

I discovered too late that my HD was nearly full.

> I have also following question: if I run Saxon as an external XSLT
> processor which VM is used: the normal one or the external one.

"External". But if you run it from within Stylus Studio, don't
forget to account for the memory that Stylus Studio itself is
using, along with whatever other applications are loaded.

> Furthermore:
> running a transformation using Saxon from within Stylus (NOT
> custom/external) took 17609000 milliseconds
> The same transformation run with Saxon outside Stylus from the
> command line takes 16046 milliseconds
> Is this huge difference due to profiling and backtracking?

All backmapping overhead - unless you've explicitly enabled
profiling. The profiling overhead is huge if you've asked it
to trace every event; it's a pretty significant hit otherwise.
The only good news is that the hit is taken all at the end of
the transformation, in the step that analyzes and reports, so
the actual overhead during the transformation is insignificant.

> Can I run a transformation without this overhead then?

Not inside of Stylus Studio, except as an external process.


Many thanks for all these answers. It clarifies a lot.

 
Topic Page 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 Go to previous topicPrev TopicGo to next topicNext Topic
Download A Free Trial of Stylus Studio 6 XML Professional Edition Today! Powered by Stylus Studio, the world's leading XML IDE for XML, XSLT, XQuery, XML Schema, DTD, XPath, WSDL, XHTML, SQL/XML, and XML Mapping!  
go

Log In Options

Site Map | Privacy Policy | Terms of Use | Trademarks
Stylus Scoop XML Newsletter:
W3C Member
Stylus Studio® and DataDirect XQuery ™are from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2016 All Rights Reserved.