Use the -mx variable. I think it is explained in the Java documentation

java -mx600m net.sf.saxon.Transform ........
600m means 600 Mb internal memory.
Leen Smits
SSA Global
-----Original Message-----
From: Thomas Lukasser [mailto:thomas.lukasser@gmx.at]
Sent: Wednesday, August 18, 2004 12:31 AM
To: saxon-help@lists.sourceforge.net
Subject: [saxon] Parsing very large Files (>100MB)

I would like to evaluate XPath Queries on very large XML files (over 100 MB). Unfortunately, I get an "out of memory error" even for relatively small files, even though there is still lots of free main memory. Is there a way to process big files with Saxon?
Thank you!
Thomas Lukasser