Sorry, we didn't find any relevant articles for you.

Send us your queries using the form below and we will get back to you with a solution.

G-Map Server - Customize Configuration File

Description

This article describes the default configuration a G-Map Server will initially create and store within the .genrocket subdirectory within the local machine from which it is launched. For most testing scenarios, the default configuration should suffice. Only modify the configuration parameters if it is absolutely necessary.

Important: The values in bold are values that should be modified. The other values should not be modified.

Default Cache Region

The default section defines default values for the volatile in-memory cache of the configuration. A given G-Map Server, operating on a given port, only allows a single region configuration. For detailed information on configuration parameters see Cache Region Configuration.

Parameter Default
jcs.default DC
jcs.default.cacheattributes org.apache.commons.jcs3.engine.CompositeCacheAttributes
jcs.default.cacheattributes.MaxObjects 100000
jcs.default.cacheattributes.MemoryCacheName org.apache.commons.jcs3.engine.memory.lru.LRUMemoryCache
jcs.default.cacheattributes.UseMemoryShrinker true
jcs.default.cacheattributes.MaxMemoryIdleTimeSeconds 3600
jcs.default.cacheattributes.ShrinkerIntervalSeconds 60
jcs.default.cacheattributes.DiskUsagePatternName UPDATE
jcs.default.elementattributes org.apache.commons.jcs3.engine.ElementAttributes
cs.default.elementattributes.IsEternal false
jcs.default.elementattributes.MaxLife 21600
jcs.default.elementattributes.IdleTime 1800
jcs.default.elementattributes.IsSpool true
jcs.default.elementattributes.IsRemote true
jcs.default.elementattributes.IsLateral true

Available Auxilary Caches

The auxiliary section defines default values for the persistent cache of the configuration. For detailed information on configuration parameters see Indexed Disk Auxiliary Cache Configuration.

Parameter Default
jcs.auxiliary.DC org.apache.commons.jcs3.auxiliary.disk.indexed.IndexedDiskCacheFactory
jcs.auxiliary.DC.attributes org.apache.commons.jcs3.auxiliary.disk.indexed.IndexedDiskCacheAttributes
jcs.auxiliary.DC.attributes.DiskPath /Users/{user}/.genrocket/gmap_cache_{port}
jcs.auxiliary.DC.attributes.MaxPurgatorySize 10000000
jcs.auxiliary.DC.attributes.MaxKeySize 1000000
jcs.auxiliary.DC.attributes.OptimizeAtRemoveCount 300000
jcs.auxiliary.DC.attributes.ShutdownSpoolTimeLimit 60

Default Settings

The text below shows the concrete default configuration of the gmap-cache_{port} config file.

# DEFAULT CACHE REGION
jcs.default=DC
jcs.default.cacheattributes=org.apache.commons.jcs3.engine.CompositeCacheAttributes
jcs.default.cacheattributes.MaxObjects=100000
jcs.default.cacheattributes.MemoryCacheName=org.apache.commons.jcs3.engine.memory.lru.LRUMemoryCache
jcs.default.cacheattributes.UseMemoryShrinker=true
jcs.default.cacheattributes.MaxMemoryIdleTimeSeconds=3600
jcs.default.cacheattributes.ShrinkerIntervalSeconds=60     
jcs.default.cacheattributes.DiskUsagePatternName=UPDATE
jcs.default.elementattributes=org.apache.commons.jcs3.engine.ElementAttributes
jcs.default.elementattributes.IsEternal=false
jcs.default.elementattributes.MaxLife=21600
jcs.default.elementattributes.IdleTime=1800
jcs.default.elementattributes.IsSpool=true
jcs.default.elementattributes.IsRemote=true
jcs.default.elementattributes.IsLateral=true

# AVAILABLE AUXILIARY CACHES
jcs.auxiliary.DC=org.apache.commons.jcs3.auxiliary.disk.indexed.IndexedDiskCacheFactory
jcs.auxiliary.DC.attributes=org.apache.commons.jcs3.auxiliary.disk.indexed.IndexedDiskCacheAttributes
jcs.auxiliary.DC.attributes.DiskPath=/Users/htaylor/.genrocket/gmap_cache_8500
jcs.auxiliary.DC.attributes.MaxPurgatorySize=10000000
jcs.auxiliary.DC.attributes.MaxKeySize=1000000
jcs.auxiliary.DC.attributes.OptimizeAtRemoveCount=300000
jcs.auxiliary.DC.attributes.ShutdownSpoolTimeLimit=60