Cache Configuration Example

The sample shows an example of Cache attributes specified in the CacheConfig.xml file.

<CacheConfig>
	<ServerConfig>
                <CacheServerCount>1</CacheServerCount>
                <CharSet>singlebyte</CharSet>
                <Memory>512</Memory>
                <HeapStorage>128</HeapStorage>
                <OverHead>1.5</OverHead>
                <ReplicationCount>0</ReplicationCount>
        </ServerConfig>
	        <CacheList>
              		<Cache>
			                    <Name>WORKFLOWEXPR</Name>
			                    <Type>local</Type>
			                    <ReplicationCount></ReplicationCount>
			                    <SingleByteObjectSize></SingleByteObjectSize>
                    			<MultiByteObjectSize></MultiByteObjectSize>
			                    <Limit></Limit>
              		</Cache>
        	      <Cache>
			                    <Name>RECORD</Name>
			                    <Type>distributed</Type>
			                    <ReplicationCount></ReplicationCount>
		                    	<SingleByteObjectSize>1320</SingleByteObjectSize>
			                    <MultiByteObjectSize>1920</MultiByteObjectSize>
			                    <Limit>24.0</Limit>
		              </Cache>
        </CacheList>
</CacheConfig>

You can switch the cache configurations for different environments, such as, large and development. For large number of repositories or large data, use the CacheConfig.large.xml file. For development environment, use CacheConfig.dev.xml file. The files are located in $MQ_HOME. As per your requirement, rename the file to CacheConfig.xml.