I'm trying to use the imageop block, but its rather resource
intensive. I get out of memory errors.
This happens because I generate a number of thumbnails on a page and
the browser requests all images from the server at once. Then cocoon
creates a pipeline for each request in parallell and out of memory
occurs.
How can I limit the number of parallell instance of a pipeline?
I tried pool-max on the resizer like this:
<map:reader logger="imageop" name="image-op-resize-pool-max"
src="org.apache.cocoon.reading.imageop.ImageOpReader"
pool-max="2">
but it appears that pool-max only limits the number of instances in
the pool, not the total number of instances. when the pool is filled,
new instances are created outside the pool.
I could maybe set session-max on the container, but that would affect
the entire system.
I could also maybe do some client side javascript hackery to request
the images in sequence, but I'd rather not.
I want something like a queue rather than a pool.
Any advice apreciated!
--
Joakim Verona
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]