You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geode.apache.org by Daniel Farcovich <Da...@amdocs.com> on 2016/05/22 13:18:50 UTC

Stats command

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

Re: Stats command

Posted by Anthony Baker <ab...@pivotal.io>.
~/working$ gfsh help show metrics
NAME
    show metrics
IS AVAILABLE
    false
SYNOPSIS
    Display or export metrics for the entire distributed system, a member or a region.
SYNTAX
    show metrics [--member=value] [--region=value] [--file=value] [--port=value] [--categories=value(,value)*]
PARAMETERS
    member
        Name/Id of the member whose metrics will be displayed/exported.
        Required: false
    region
        Name/Path of the region whose metrics will be displayed/exported.
        Required: false
    file
        Name of the file to which metrics will be written.
        Required: false
    port
        Port number of the Cache Server whose metrics are to be displayed/exported. This can only be used along with the --member parameter.
        Required: false
    categories
        Categories available based upon the parameters specified are:
        - no parameters specified: cluster, cache, diskstore, query
        - region specified: cluster, region, partition, diskstore, callback, eviction
        - member specified: member, jvm, region, serialization, communication, function, transaction, diskstore, lock, eviction, distribution
        - member and region specified: region, partition, diskstore, callback, eviction
        Required: false

~/working$ gfsh -e "connect" -e "show metrics --member=l1"

(1) Executing - connect

Connecting to Locator at [host=localhost, port=10334] ..
Connecting to Manager at [host=192.168.1.4, port=1099] ..
Successfully connected to: [host=192.168.1.4, port=1099]


(2) Executing - show metrics --member=l1


Member Metrics

  Category    |              Metric              | Value
------------- | -------------------------------- | -------------------
member        | upTime                           | 82
              | cpuUsage                         | 0.24215784668922424
              | currentHeapSize                  | 82
              | maximumHeapSize                  | 3641
…

Anthony



> On May 22, 2016, at 6:18 AM, Daniel Farcovich <Da...@amdocs.com> 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


Re: Stats command

Posted by Anthony Baker <ab...@pivotal.io>.
~/working$ gfsh help show metrics
NAME
    show metrics
IS AVAILABLE
    false
SYNOPSIS
    Display or export metrics for the entire distributed system, a member or a region.
SYNTAX
    show metrics [--member=value] [--region=value] [--file=value] [--port=value] [--categories=value(,value)*]
PARAMETERS
    member
        Name/Id of the member whose metrics will be displayed/exported.
        Required: false
    region
        Name/Path of the region whose metrics will be displayed/exported.
        Required: false
    file
        Name of the file to which metrics will be written.
        Required: false
    port
        Port number of the Cache Server whose metrics are to be displayed/exported. This can only be used along with the --member parameter.
        Required: false
    categories
        Categories available based upon the parameters specified are:
        - no parameters specified: cluster, cache, diskstore, query
        - region specified: cluster, region, partition, diskstore, callback, eviction
        - member specified: member, jvm, region, serialization, communication, function, transaction, diskstore, lock, eviction, distribution
        - member and region specified: region, partition, diskstore, callback, eviction
        Required: false

~/working$ gfsh -e "connect" -e "show metrics --member=l1"

(1) Executing - connect

Connecting to Locator at [host=localhost, port=10334] ..
Connecting to Manager at [host=192.168.1.4, port=1099] ..
Successfully connected to: [host=192.168.1.4, port=1099]


(2) Executing - show metrics --member=l1


Member Metrics

  Category    |              Metric              | Value
------------- | -------------------------------- | -------------------
member        | upTime                           | 82
              | cpuUsage                         | 0.24215784668922424
              | currentHeapSize                  | 82
              | maximumHeapSize                  | 3641
…

Anthony



> On May 22, 2016, at 6:18 AM, Daniel Farcovich <Da...@amdocs.com> 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


Re: Stats command

Posted by Barry Oglesby <bo...@pivotal.io>.
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 <ds...@pivotal.io>
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 <
> Daniel.Farcovich@amdocs.com> 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
>>
>
>

Re: Stats command

Posted by Barry Oglesby <bo...@pivotal.io>.
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 <ds...@pivotal.io>
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 <
> Daniel.Farcovich@amdocs.com> 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
>>
>
>

Re: Stats command

Posted by Darrel Schneider <ds...@pivotal.io>.
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 <
Daniel.Farcovich@amdocs.com> 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
>

Re: Stats command

Posted by Darrel Schneider <ds...@pivotal.io>.
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 <
Daniel.Farcovich@amdocs.com> 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
>