There is a way to parse a gfs file using the org.apache.geode.internal.SystemAdmin
class.
1. The following script can be used to get the putAllRequest
line:
java -classpath $GEODE/lib/geode-dependencies.jar org.apache.geode.internal.SystemAdmin stats :CacheServerStats.putAllRequests -archive=cacheserver.gfs -nofilter | grep max=
The output will be the following:
putAllRequests operations: samples=732 min=0 max=1000 average=984.53 stddev=118.12 last=1000
2. The following script can be used to get just the putAllRequest max
:
java -classpath $GEODE/lib/geode-dependencies.jar org.apache.geode.internal.SystemAdmin stats :CacheServerStats.putAllRequests -archive=cacheserver.gfs -nofilter | grep max= | cut -f7 -d' ' | cut -f2 -d=
The output will be the following:
1000
3. The following script can be used to get the processPutAllTime
line:
java -classpath $GEODE/lib/geode-dependencies.jar org.apache.geode.internal.SystemAdmin stats :CacheServerStats.processPutAllTime -archive=cacheserver.gfs -nofilter | grep max=
The output will be the following:
processPutAllTime nanoseconds: samples=818 min=0 max=4229101947 average=4172826713.66 stddev=459746271.4 last=4229101947
The following script can be used to get just the processPutAllTime
max:
java -classpath $GEODE/lib/geode-dependencies.jar org.apache.geode.internal.SystemAdmin stats :CacheServerStats.processPutAllTime -archive=cacheserver.gfs -nofilter | grep max= | cut -f7 -d' ' | cut -f2 -d=
The output will be as following:
4229101947
This can be done with these CacheServerStats
:
putRequests/processPutTime
getRequests/processGetTime
destroyRequests/processDestroyTime
putAllRequests/processPutAllTime
getAllRequests/processGetAllTime
removeAllRequests/processRemoveAllTime
queryRequests/processQueryTime