Skip to Content.
Sympa Menu

xom-interest - Re: [XOM-interest] Appending at the end of xml file efficiently

xom-interest AT lists.ibiblio.org

Subject: XOM API for Processing XML with Java

List archive

Chronological Thread  
  • From: Anvesh Vagiri <yahanvesh AT gmail.com>
  • To: xom-interest AT lists.ibiblio.org
  • Subject: Re: [XOM-interest] Appending at the end of xml file efficiently
  • Date: Mon, 22 Jun 2009 12:44:32 +0530

I have increased the heap size.
The problem im now facing is its not even giving Out of memory exception.
All it does is it suddenly breaks out of execution after printing
"just started building"
No exception of any kind is thrown even when i surrounded it with a
try catch statement.
I was trying to see where it was breaking out variably that is some
times it breaks out when just appending for 10Mb of file or sometimes
20MB.
This appending im calling from a servlet which implements it file on the
server.
its to be noted that Servlets are multithreaded!
So will tht affect?

So can anyone please help me out to find the reason for this

This is the part of the code

start1 = System.currentTimeMillis();
System.out.println("just started builidng");
new Builder(appendingNodeFactory).build(new File(xmlfile)); //stream through
end1 = System.currentTimeMillis();
System.out.println("for building "+(end1-start1)+" ms.");




Archive powered by MHonArc 2.6.24.

Top of Page