Thanks for your tip. It seems it works a little better with reducing the pool, but the problem still remains.
Heres the modified imagereader component definition:
<map:reader name="image" src="org.apache.cocoon.reading.ImageReader" logger="sitemap.reader.image" pool-max="2" pool-min="1" pool-grow="1"/> </map:readers>
It still craches, but manages to generate more thumbnails.
Here is the exception in the cocoon handled-errors.log:
com.sun.image.codec.jpeg.TruncatedFileException: Premature end of input file
I agree that cached thumbnails would be better in many ways, but for various reasons it wouldnt be very convenient in my case.
/Joakim
Vadim Gritsenko wrote:
Geoff Howard wrote:
Joakim Verona wrote:
Hello list,
I'm writing a simple photo browser with the cocoon image reader and image directory generator.
It seems the image reader is unstable when generating thumbnails.
Random images get broken, that is, the image reader doesnt generate the thumbnails properly.
I guess the problem is that a lot of thumbnails are requested at the same time from the server, since the thumbnail table is generated first, and the thumbnails img tags request from the server all at once.
Is there any way around this?
Reader is recyclable. I'd recommend hard-limiting the pool of image readers to the number low enough so server can handle this amount of request, and even two or three less then that.
(but personally speaking, I'd never do thumbnail generation on the fly. especially given this low prices on 6.3mpixel cameras. offline generation is the way to go)
Vadim
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
