📄 cocoon.xconf
字号:
+-->
<xml-parser class="org.apache.excalibur.xml.impl.JaxpParser" logger="core.xml-parser" pool-grow="4" pool-max="32" pool-min="8">
<parameter name="validate" value="false"/>
<parameter name="namespace-prefixes" value="false"/>
<parameter name="stop-on-warning" value="true"/>
<parameter name="stop-on-recoverable-error" value="true"/>
<parameter name="reuse-parsers" value="false"/>
<parameter name="drop-dtd-comments" value="true"/>
</xml-parser>
<!--+ | XSLT Processor | | 'incremental-processing' (only works with Xalan) allows the XSLT | processor to start the output of the transformation as soon as possible. | if set to false, the transforer waits until the end of the | transformation to deliver the output. | WARNING: * if you enable incremental-processing, you should be aware of | the following bug: | http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13186 | * incremental-processing creates an additional, non-pooled thread. | * using incremental-processing does not save memory, the input | tree will still be build completely. | * incremental processing is a 'static' thing in Xalan: if you | enable it on one xslt-processor, enable it on all. +-->
<xslt-processor logger="core.xslt-processor">
<parameter name="use-store" value="true"/>
<parameter name="incremental-processing" value="false"/>
</xslt-processor>
<!--+ | XSLT Processor using xsltc from Xalan | For Interpreted Xalan use: | <transformer-factory>org.apache.xalan.processor.TransformerFactoryImpl</transformer-factory> +-->
<component class="org.apache.excalibur.xml.xslt.XSLTProcessorImpl" logger="core.xslt-processor" role="org.apache.excalibur.xml.xslt.XSLTProcessor/xsltc">
<parameter name="use-store" value="true"/>
<parameter name="transformer-factory" value="org.apache.xalan.xsltc.trax.TransformerFactoryImpl"/>
</component>
<!--+ | Xalan XSLT Processor +-->
<component class="org.apache.excalibur.xml.xslt.XSLTProcessorImpl" logger="core.xslt-processor" role="org.apache.excalibur.xml.xslt.XSLTProcessor/xalan">
<parameter name="use-store" value="true"/>
<parameter name="incremental-processing" value="false"/>
<parameter name="transformer-factory" value="org.apache.xalan.processor.TransformerFactoryImpl"/>
</component>
<!--+ | Saxon XSLT Processor | For old (6.5.2) Saxon use: | <parameter name="transformer-factory" value="com.icl.saxon.TransformerFactoryImpl"/> | For new (7.x?) Saxon use: | <parameter name="transformer-factory" value="net.sf.saxon.TransformerFactoryImpl"/> <component logger="core.xslt-processor" role="org.apache.excalibur.xml.xslt.XSLTProcessor/saxon" class="org.apache.excalibur.xml.xslt.XSLTProcessorImpl"> <parameter name="use-store" value="true"/> <parameter name="transformer-factory" value="com.icl.saxon.TransformerFactoryImpl"/> </component> +-->
<!-- Xpath Processor: -->
<xpath-processor class="org.apache.excalibur.xml.xpath.XPathProcessorImpl" logger="core.xpath-processor"/>
<!-- The XMLizers converts different mime-types to XML -->
<xmlizer>
<parser mime-type="text/xml" role="org.apache.excalibur.xml.sax.SAXParser"/>
</xmlizer>
<!-- ============================ Object Stores =========================== -->
<!--+ | Transient Store: holds objects that don't have to survive shutdown | | Common configuration parameters: | maxobjects: Indicates how many objects will be hold in the cache. | When the number of maxobjects has been reached. The last object | in the cache will be thrown out. +-->
<transient-store logger="core.store.transient">
<parameter name="maxobjects" value="3000"/>
</transient-store>
<!--+ | Store: generic store. The default implementation is an in-memory store | backed by the persistent store (see below). This forms a two-stage | cache composed of a fast in-memory MRU front-end and a persistent | back-end storing less used objects. | | Common configuration parameters: | maxobjects: Indicates how many objects will be hold in the cache. | When the number of maxobjects has been reached. The last object | in the cache will be thrown out. | eternal: Whether items will remain in the cache forever. | | The next two parameters are only applicable when 'eternal' is set to 'false'. | They can be both be set to a non-zero value, but only combinations where | 'timeToLiveSeconds' is much greater than 'timeToIdleSeconds' are useful: | timeToLiveSeconds: The maximum amount of time an item is allowed to remain in the cache after it was added. | timeToIdleSeconds: The maximum amount of time an item is allowed to remain in the cache after it was last accessed. +-->
<store logger="core.store">
<parameter name="region-name" value="store"/>
<parameter name="size" value="small"/>
<!-- optional small, medium, large ,huge <parameter name="size" value="small"/> <parameter name="maxdiskkeys" value="20000"/> <parameter name="maxobjects" value="500"/> 1 day <parameter name="timeToLiveSeconds" value="86400"/> <parameter name="overflow-to-disk" value="false"/> <parameter name="timeToIdleSeconds" value="86400"/> -->
<parameter name="overflow-to-disk" value="false"/>
</store>
<store-repository-doc logger="core.store">
<parameter name="region-name" value="repostore"/>
<parameter name="size" value="small"/>
<!-- optional small, medium, large ,huge <parameter name="size" value="small"/> <parameter name="maxdiskkeys" value="20000"/> <parameter name="maxobjects" value="500"/> 1 day <parameter name="timeToLiveSeconds" value="86400"/> <parameter name="overflow-to-disk" value="false"/> <parameter name="timeToIdleSeconds" value="86400"/> -->
</store-repository-doc>
<store-repository-binary logger="core.store">
<parameter name="region-name" value="binarystore"/>
<parameter name="size" value="small"/>
<!-- optional small, medium, large ,huge <parameter name="size" value="small"/> <parameter name="maxdiskkeys" value="20000"/> <parameter name="maxobjects" value="500"/> 1 day <parameter name="timeToLiveSeconds" value="86400"/> <parameter name="overflow-to-disk" value="false"/> <parameter name="timeToIdleSeconds" value="86400"/> -->
</store-repository-binary>
<!--+ | Store Janitor: the store garbage collector and memory usage controller. | | WARNING: Be careful with the heapsize and freememory parameters. | Wrong values can cause high cpu usage. | | Example configuration: | Jvm settings: | -Xmx200000000 | store-janitor settings: | <parameter name="freememory" value="5000000"/> | <parameter name="heapsize" value="196000000"/> | | It is recommended to have heapsize equal to -Xmx, especially on Sun's | JVM which are unable to shrink its heap once it grows above minimum. | Freememory should be greater than amount of memory necessary for normal | application operation. | BUT: The heap size of the memory of the JVM is a little bit less than | the value you specify for -Xmx, so you have to set the heapsize | for the store janitor to a value which is lower (2% less seems | to be a working value). +-->
<store-janitor logger="core.store.janitor">
<!-- How much free memory shall be available in the jvm -->
<parameter name="freememory" value="2048000"/>
<!-- Indicates the limit of the jvm memory consumption. The default max heapsize for Sun's JVM is (almost) 64Mb -->
<parameter name="heapsize" value="240000000"/>
<!-- How often shall the cleanup thread check memory -->
<parameter name="cleanupthreadinterval" value="10"/>
<!-- Experimental adaptive algorithm for cleanup interval <parameter name="adaptivethreadinterval" value="true"/> -->
<!-- Indicates the thread priority of the cleanup thread -->
<parameter name="threadpriority" value="5"/>
<!-- How much percent of the elements of each registered Store shall be removed when low on memory. Default 10% -->
<parameter name="percent_to_free" value="10"/>
<!-- Invoke the garbage collector when low memory is reached -->
<parameter name="invokegc" value="false"/>
</store-janitor>
<cache/>
<global-variables/>
<!-- ================ Internationalization Catalogs =================== -->
<!--+ | I18n Bundle Factory | | BundleFactory loads Bundles with i18n resources for the given locale. | Bundles are loaded from the 'catalogue_location'. Bundle base name is | 'catalogue_name' value. | If 'cache-at-startup' is true then BundleFactory preloads bundles. +-->
<i18n-bundles logger="core.i18n-bundles"/>
<!-- ====================== System Components =========================== -->
<!--+ | The core classloader implementation +-->
<classloader class="org.apache.cocoon.components.classloader.ClassLoaderManagerImpl" logger="core.classloader"/>
<!--+ | XML compiler/decompiler | | these components are used to process SAX events and produce a binary | representation that is much more compact and efficient for | subsequent parsing. These are used by the cache system to save | the intermediate results of the pipeline stages reducing the overhead | of xml parsing/serialization. +-->
<xml-serializer class="org.apache.cocoon.components.sax.XMLByteStreamCompiler" logger="core.xml-serializer" pool-grow="4" pool-max="32" pool-min="8"/>
<xml-deserializer class="org.apache.cocoon.components.sax.XMLByteStreamInterpreter" logger="core.xml-deserializer" pool-grow="4" pool-max="32" pool-min="8"/>
<!--+ | Runnable manager | | this component manages commands (Runnables) executed in background using | preconfigured pools of worker threads +-->
<runnable-manager logger="core.runnable">
<!--+ | This is the default configuration of the runnable-manager. More | indepth information can be found at | http://gee.cs.oswego.edu/dl/classes/EDU/oswego/cs/dl/util/concurrent/PooledExecutor.html | The following elements can be used: | | thread-factory: specifies the fully qualified class name of an | org.apache.cocoon.components.thread.ThreadFactory | implementation. It is responsible to create Thread | classes. | thread-pools: container element for thread-pool elements.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -