Here are a couple scripts that use SystemAdmin to dump specific stats.

Make sure to have JAVA_HOME and GEODE environment variables set.

To run the dumpstats.sh script, just give it a stats file like:

./dumpstats.sh cacheserver.gfs
Maximum Memory (GB): 63.136
Average Free Memory (GB): 61.067
Average Used Memory (GB): 2.068
Average Open File Descriptors: 134.65
Maximum Open File Descriptors: 209
Maximum GC Time (ms): 0
Load Average (15): 0.8
Maximum CPU (%): 13.59
Reply Timeouts: 0
Mimumum Nodes: 5
Maximum Nodes: 5
Average Current Clients: 3.06
Average Current Client Connections: 14.86
Maximum Client Thread Queue Size: 0
Average Client Thread Queue Size: 0
Maximum Client Accepts In Progress: 5
Average Client Accepts In Progress: 0.01
Client Failed Connection Attempts: 0
Partitioned Region Statistics:
/envelope
name=/data
bucketCount max=22
putsCompleted max=4031158
putTime max=0
primaryBucketCount max=22


Thanks,
Barry Oglesby


On Mon, May 23, 2016 at 9:30 AM, Darrel Schneider <[email protected]>
wrote:

> I don't know of a way to analyze offline stat archives using gfsh.
>
> But the code for the old gemfire stats command is still in the geode
> source.
> It is: com.gemstone.gemfire.internal.SystemAdmin
> Its "main" is what the old gemfire script executed. Just keep in mind that
> this class is not used by geode so it could go away.
>
> I think it is a good idea to add off-line stat archive analysis to gfsh
> and the "stats" command in SystemAdmin could be used to aid this
> implementation.
>
>
> On Sun, May 22, 2016 at 6:18 AM, Daniel Farcovich <
> [email protected]> wrote:
>
>> Hi Everyone,
>> Is earlier versions of Gemfire there was a command named stats, which
>> printed statistic values from a statistic archive file.
>> How can I use it in GEODE? Is there a gfsh corresponding command?
>>
>> Thanks,
>> Daniel Farcovich
>>
>>
>> This message and the information contained herein is proprietary and
>> confidential and subject to the Amdocs policy statement,
>> you may review at http://www.amdocs.com/email_disclaimer.asp
>>
>
>

Attachment: dumpstats.sh
Description: Bourne shell script

Attachment: systemadmin.sh
Description: Bourne shell script

Reply via email to