Several log files are written by the various parts of the session management code.
cacheserver.log
. Log file written by the GemFire server process.gemfire_modules.log
. Log file written by the GemFire cache client.To add fine-level logging to the GemFire cache server, add the ‘log-level’ property to the server process. For example:
gfsh> start server --name=server1 --cache-xml-file=../conf/cache-server.xml
--log-level=fine
This will add fine-level logging to the server.log
file.
Note: This will help debug GemFire server issues, but it adds a lot of logging to the file.
To add fine-level logging to the GemFire Cache Client, add the ‘log-level’ property to the Listener element in the Tomcat server.xml
file. For example:
<Listener log-level="fine"
cache-xml-file="${gemfire-cs.cache.configuration.file}"
className="org.apache.geode.modules.session.catalina.ClientServerCacheLifecycleListener"
criticalHeapPercentage="${gemfire-cs.critical.heap.percentage}"
evictionHeapPercentage="${gemfire-cs.eviction.heap.percentage}"
log-file="${gemfire-cs.log.file}"
statistic-archive-file="${gemfire-cs.statistic.archive.file}"
statistic-sampling-enabled="${gemfire-cs.statistic.sampling.enabled}"/>
This will add fine-level logging to the file defined by the ${gemfire-cs.log.file}
property. The default log file name is gemfire_modules.log
.
NoteThis will help debug GemFire client issues, but it adds a lot of logging to the file.