Tom Fennelly schrieb:
Hi there.
I have a 2Gb message (file based) and was wondering could I transform
it using Xalan. I tried (supplying as a StreamSource) and it bombed
out (OOM errors). I actually tried then with smaller files and went
down to 100M and it's still bombing out. Am I doing something wrong?
100 MB is still huge. For such huge files, I'd consider using the SAX
API, or Saxon-SA, which has a streaming mode.
http://www.saxonica.com/documentation/sourcedocs/serial.html
I've seen Xalan-C to be relatively economical with memory.
If you want to use Xalan-J, you must give the JVM enough memory in order
to avoid java.lang.OutOfMemory. Can't say how much you'll need.
java -Xmx1024MB
Michael Ludwig