[
https://issues.apache.org/jira/browse/GEODE-7714?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17018558#comment-17018558
]
Mario Kevo commented on GEODE-7714:
-----------------------------------
Hi [~dbarnes] ,
Yes, with this solution you can set it to the empty string "" or just leave it
is empty.
To disable writing stats to file you can use this two options:
{code:java}
alter runtime --statistic-archive-file=
alter runtime --statistic-archive-file=""
{code}
> Disable statistic-archive-file not working
> -------------------------------------------
>
> Key: GEODE-7714
> URL: https://issues.apache.org/jira/browse/GEODE-7714
> Project: Geode
> Issue Type: Bug
> Components: gfsh
> Reporter: Mario Kevo
> Assignee: Mario Kevo
> Priority: Major
> Time Spent: 20m
> Remaining Estimate: 0h
>
> {color:#172b4d}Once the statistic writing to file is configured, it can't be
> turned off. It should be possible to disable it by setting the
> statistic-archive-file parameter to an empty string, but it fails:{color}
> {color:#172b4d} {color}
> {color:#172b4d}Cluster-1 gfsh>alter runtime --statistic-archive-file={color}
> {color:#172b4d}Please provide a relevant parameter(s){color}
> {color:#172b4d} {color}
> {color:#172b4d} {color}
> {color:#172b4d}This parameter is ignored if it is set with another
> configuration parameter:{color}
> {color:#172b4d} {color}
> {color:#172b4d}GemFire properties defined at the runtime{color}
> {color:#172b4d}statistic-archive-file :
> /opt/dbservice/data/a.txt{color}
> {color:#172b4d}statistic-sampling-enabled :
> {color}{color:#910091}true{color}
> {color:#172b4d} {color}
> {color:#172b4d} {color}
> {color:#172b4d}Cluster-1 gfsh>alter runtime --statistic-archive-file=
> --enable-statistics={color}{color:#910091}true{color}
> {color:#000091}Runtime{color}{color:#172b4d} configuration altered
> successfully {color}{color:#910091}for{color}{color:#172b4d} the following
> member(s){color}
> {color:#172b4d}192.168.110.65(eric-data-kvdb-ag-server-1:1)<v1>:41000{color}
> {color:#172b4d}192.168.120.20(eric-data-kvdb-ag-server-0:1)<v2>:41000{color}
> {color:#172b4d} {color}
> {color:#172b4d}GemFire properties defined at the runtime{color}
> {color:#172b4d}statistic-archive-file :
> /opt/dbservice/data/a.txt{color}
> {color:#172b4d}statistic-sampling-enabled :
> {color}{color:#910091}true{color}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)