Ashok,

I added your GC to startup and removed System.gc();
The 1,000 loop test still crashed.

One thing I did do was switch to using a FileInputStream which seemed to 
help a bit (file handles actually close), but eventually still crashed 
anyway.

  FileInputStream fis = new FileInputStream("/home2/templates/" + 
templateName);
 textDoc = (TextDocument)TextDocument.loadDocument(fis);
 fis.close();



Kevin



From:
Ashok Hariharan <[email protected]>
To:
[email protected]
Date:
11/15/2011 02:11 PM
Subject:
Re: TextDocument.loadDocument() locking up in an x86_Linux_64 environment.



On Tue, Nov 15, 2011 at 10:10 PM, Kevin Skelton <[email protected]> 
wrote:
> The program is loading an .odt doc from the linux file system in order 
to
> match/merge it with a data file.
> I am not writing or saving the document back to the file system, I am
> sending the newly created doc over the wire.
> This is a single threaded application.  (MQSeries triggered).
> No exceptions at all.  I have the load in a try/catch loop but never see
> an exception.
>

Try removing the System.gc()

and starting the test app with -XX:-UseParallelGC

do you get the same problem ?


Reply via email to