Hello list,
I've made a small cocoon 2.2 application which browses images
contained i zip files.
I started out with the cocoon project archetype.
Basically I have a flowscript which figures out the content of a zip
file using this:
var imgarc=new Packages.java.util.zip.ZipFile(basepath);
gets the Enumeration of the files, converts it to a list, sorts it,
and then does sendpage to a view page for each file.
The image file in the zip is viewed with a cocoon jar protocol reader:
<map:match pattern="flib/**.cbz!**">
<map:read src="jar:file:///flib/{1}.cbz!/{2}"/>
</map:match>
This application consumes about 1.5Gb virtual, 170 Mb resident,
and I run out of heapspace after a while.
The application is very simple. How can I debug this memory problem?
I also use the Directory Generator to browse the files, and an xslt
with some xpath 2.0 so I've configured saxxon.
--
Joakim Verona