I have a DocBook document containing 750 BW JPG photos, 300x450 pixels 
each. When I open this document in XXE (Linux Fedora Core 5, Java 1.5), 
then XXE loads the DocBook file, verifies its validity, and starts 
loading photos. System meters indicate "normal" activity, but after some 
time the situation changes, the CPU load reaches 100% and stays there 
forever.

My suspect was insufficient memory, even if I would prefer e.g. a 
message box to indicate that, rather than a neverending and 
uninterruptible operation. So I changed the default memory configuration 
from 128MB to 256MB and the same document loads successfully.

Everything is fine, up to now.

But when I close this document and open it again, I end up with the 100% 
CPU load and neverending operation again. The same happens when I press 
Ctrl-L on already opened document.

It's clear to me that not everything in Java is under your control. It's 
also clear that a document containing so many photos is rather 
non-standard. On the other hand, having the document closed, I would 
expect all the image objects released, so the document re-opening should 
succeed again.

Thank you

Tomas Klinkovsky
Czech Republic


Reply via email to