473,383 Members | 1,785 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 software developers and data experts.

Java heap space problem in xalan

I am doing XSL transformation using xalan, but sometimes the input XML files
are too large and that cause
"java.lang.OutOfMemoryError: Java heap space" exception in xalan.

Is there any way to split the xml file and do processing.

I tried to use the -FLAVOR s2s assuming that it will help as xalan won't
keep the xml tree in memory, but that also didn't help.


Dec 30 '05 #1
2 1882
Sandy wrote:
I am doing XSL transformation using xalan, but sometimes the input XML files
are too large and that cause
"java.lang.OutOfMemoryError: Java heap space" exception in xalan.

Is there any way to split the xml file and do processing.

I tried to use the -FLAVOR s2s assuming that it will help as xalan won't
keep the xml tree in memory, but that also didn't help.


There's a different transformation language called STX, which can
transform in a streaming fashion (as opposed to XSL, which generally
requires the whole input document to be loaded before all expressions
can be evaluated). It's much faster, too.
You might want to google for it, and see if your transform can be
translated into that. If you don't use upward axes, it probably can.

Otherwise, you have to look through your transform manually and see if
there is anything preventing you from doing a split, such as sibling
axis steps on the nodes that you want in separate documents, or
predicates that examine something about nodes that have been flung into
a different document.

Soren
Dec 31 '05 #2
We are working on the XSLT for a new XML processing model called
VTD-XML
http://vtd-xml.sf.net, it consumes 5x less memory than Xerces DOM,and
also
10x faster while retaining random access..
a demo is at http://vtd-xml.sf.net

Jan 9 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Chris Morgan | last post by:
I'm trying to get php to run on my webserver as a Java Servlet, it works the first time but fails the second time and crashes the JVM with the following error: I have tried the latest versions...
0
by: Ravi Tallury | last post by:
Hi We are having issues with our application, certain portions of it stop responding while the rest of the application is fine. I am attaching the Java Core dump. If someone can let me know what...
4
by: kimbuba | last post by:
Hello, do you guys know how to increase the maximum heap for the jvm? I know about giving to apps args like: -Xmx<size> set maximum Java heap size But i would like to give to my VM...
0
by: Chris Bedford | last post by:
Hello, I'm using Xalan and I have a bunch of xslt documents that were constructed to run with another processor that has alot of custom extension functions. The names of these functions ...
0
by: Xiaolei Li | last post by:
first off, i'm a total newbie at this stuff so excuse any wrong usage of terminology or whatever else. i have a XSL to transform a Document such that all "text" nodes will have a "SPAN" inserted...
1
by: Jens Mueller | last post by:
Hi there, this is a Java-XML Question, so I am not sure whether this is the right place, haven't found anything better .... I try to convert a Java object to XML via SAX and let the FOP...
1
by: Simon Brooke | last post by:
Yet another silly question, but this just might be the crucial one. In answer to another of my silly questions, Björn Höhrmann pointed me to http://home.ccil.org/~cowan/XML/tagsoup/, and as I...
318
by: King Raz | last post by:
The shootout site has benchmarks comparing different languages. It includes C# Mono vs Java but not C# .NET vs Java. So I went through all the benchmark on the site ... ...
1
by: HxRLxY | last post by:
I have a program that shows a thumbnail of an image. If the user clicks on the thumbnail a new JFrame is opened that shows the full size image. If the image is larger than the screen, it gets...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.