[XOM-interest] Appending at the end of xml file efficiently
Anvesh Vagiri
yahanvesh at gmail.com
Mon Jun 22 03:14:32 EDT 2009
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.");
More information about the XOM-interest
mailing list