Re: [xsl] help with java.lang.outofmemoryerror

Subject: Re: [xsl] help with java.lang.outofmemoryerror
From: James Fuller <jim.fuller@xxxxxxxxxxxxxx>
Date: Wed, 06 Apr 2005 14:01:12 +0200
Nicola Harlow wrote:

>Ok, perhaps you didn't quite understand how really, really thick I am
>about this. (And anxious to learn :)
>
>If I had known what to do with the original poster's information, I
>wouldn't have asked the question in the first place.
>
>  
>

Hello Nicola,

to invoke saxon, u normally need to run it from command line, like
below..using java and the -jar switch to tell where the saxon jar is;

java -jar saxon8.jar source.xml style.xsl

java invokes the jvm (java virtual machine) to run the file,.....and has
switches to control memory usage (-Xms and -Xmx), which is unrelated to
saxon...but related to defining memory for *any* java program.

java -Xms512m -Xmx512m -jar saxon8.jar source.xml style.xsl

-Xms defines minimum heap size

-Xmx defines maximum heap size

(note: the X is just java convention which defines these switches as extensions...I think it was introduced with Java 1.3)

the above invokes saxon, with the appropriate memory....512m = 512 megabytes of memory...so depending on the resources of your computer....will define what memory you can supply. It is OK to have the same value for min and max...

hth,Jim Fuller

Current Thread