cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "gerhard" <g-froehl...@gmx.de>
Subject [C2] bug: reading parameter from cocoon.xconf
Date Sat, 05 May 2001 16:28:15 GMT
Hi,
strange things are happening:

this.storesize  = params.getParameterAsInteger("storesize",10485760);
I thought this piece of code is reading the parameter storesize
fom the cocoon.xconf file. The "10485760" parameter is the default
value, isn't it?

Following entry in the cocoon.xconf file:
<parameter name="storesize" value="50000"/>

Ok now the output of the cocoon.log

DEBUG   17559   [cocoon  ] (Thread-9): objectsize = 10021
DEBUG   17560   [cocoon  ] (Thread-9): SIZE_OF_STORE = 57311
DEBUG   17560   [cocoon  ] (Thread-9): storesize = 50000 <--- HERE IS THE VALUE FROM THE
cocoon.xconf FILE
DEBUG   17560   [cocoon  ] (Thread-9): Holding object in memory. Key: stylesheets/page/simple-page2svg.xsl
DEBUG   17560   [cocoon  ] (Thread-9): SIZE_OF_STORE for free() = 57311
DEBUG   17561   [cocoon  ] (Thread-9): SIZE_OF_STORE after free() = 39394
DEBUG   17562   [cocoon  ] (Thread-9): processing file docs/samples/hello-page.xml
DEBUG   17567   [cocoon  ] (Thread-9): file resolved to
file:/H:/xml-cocoon/build/cocoon/webapp/docs/samples/hello-page.xml
DEBUG   17568   [cocoon  ] (Thread-9): Retrieving a org.apache.cocoon.components.parser.JaxpParser
from the pool
DEBUG   22348   [cocoon  ] (Thread-9): Returning a org.apache.cocoon.components.parser.JaxpParser
to the pool
DEBUG   22364   [cocoon  ] (Thread-9): objectsize = 21756
DEBUG   22365   [cocoon  ] (Thread-9): SIZE_OF_STORE = 61150
DEBUG   22365   [cocoon  ] (Thread-9): storesize = 10485760 <--- AND KNOW THE DEFAULT SETTINGS
ARE USED
DEBUG   22366   [cocoon  ] (Thread-9): Holding object in memory. Key:
PCK:CCK:3-svg2jpeg-1PCK:CCK:1-file--5816271607630923585CCK:2-xslt--415058801837557390

First the xconf value is used and the next call of the class uses the default value.
Why?

cheers
gerhard





---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Mime
View raw message