I wrote a script to dump some interesting stats using SystemAdmin posted
here:

https://drive.google.com/open?id=0ByTR2ZH0oYBpVDUwemtuRXI3TFk

It dumps output like:

./dumpstats.sh cacheserver.gfs
Maximum Memory (GB): 74.517
Average Free Memory (GB): 43.015
Average Used Memory (GB): 31.501
Average Open File Descriptors: 285.17
Maximum Open File Descriptors: 328
Maximum GC Time (ms): 6.419
Load Average (15): 0.18
Maximum CPU (%): 2.54
Reply Timeouts: 1
Mimumum Nodes: 24
Maximum Nodes: 24
Average Current Clients: 20.96
Average Current Client Connections: 21.05
Maximum Client Thread Queue Size: 0
Average Client Thread Queue Size: 0
Maximum Client Accepts In Progress: 3
Average Client Accepts In Progress: 0.06
Client Failed Connection Attempts: 0
Partitioned Region Statistics:
/MyDataRegion
name=/MyDataRegion
bucketCount max=14
putsCompleted max=0
putTime max=0
primaryBucketCount max=7
...


Thanks,
Barry Oglesby


On Tue, Oct 24, 2017 at 9:52 AM, Jens Deppe <jensde...@apache.org> wrote:

> Hi Dinesh,
>
> Yes, that's pretty much it. That command will give you a list of all the
> possible stats. If you want an individual stat you can retrieve it like
> this:
>
> java -cp $GEODE_HOME/lib/geode-dependencies.jar
> org.apache.geode.internal.SystemAdmin stats vmStats:VMStats.processCpuTime
> -archive=server1/server1.gfs
>
> Note the 'stat spec' I'm using here - vmStats:VMStats.processCpuTime. You
> can get more details on how to refine the output by using the '-help'
> option.
>
> --Jens
>
> On Tue, Oct 24, 2017 at 6:02 AM, Dinesh Akhand <dines...@amdocs.com>
> wrote:
>
> > Hi team,
> >
> > I tried below command
> >
> > java -cp "geode-dependencies.jar:$GEODE_HOME/lib/*"
> > org.apache.geode.internal.SystemAdmin stats    -archive=cacheserver.gfs
> >
> > Is this correct command to read cacheserver.gfs file.
> >
> >
> > Please confirm.
> >
> > Thanks,
> > Dinesh Akhand
> > This message and the information contained herein is proprietary and
> > confidential and subject to the Amdocs policy statement,
> >
> > you may review at https://www.amdocs.com/about/email-disclaimer <
> > https://www.amdocs.com/about/email-disclaimer>
> >
>

Reply via email to