Hi Alisher,

There is a known issue. Please see
https://issues.apache.org/jira/browse/IGNITE-5490

Thanks,
Slava.

2017-07-28 15:23 GMT+03:00 Ali <[email protected]>:

> P.S. Ignite version 2.1.0
>
>
>
> With best regards
> Alisher Alimov
> [email protected]
>
> On 28 Jul 2017, at 15:20, Ali <[email protected]> wrote:
>
> Hello!
>
> I have problem with retrieving actual allocated size in offheap for cache,
> CacheMetrics#offHeapAllocatedSize always return 0
>
> CacheConfiguration:
>
> cacheConfiguration.setBackups(1);
> cacheConfiguration.setAtomicityMode(CacheAtomicityMode.TRANSACTIONAL);
> cacheConfiguration.setCacheMode(CacheMode.REPLICATED);
> cacheConfiguration.setCopyOnRead(true);
> cacheConfiguration.setReadFromBackup(true);
> cacheConfiguration.setManagementEnabled(true);
> cacheConfiguration.setStatisticsEnabled(true);
> cacheConfiguration.setMemoryPolicyName(“test");
> cacheConfiguration.setWriteSynchronizationMode(CacheWriteSynchronizationMode.FULL_SYNC);
>
>
> Here are CacheMetrics
>
> "CONTRACTORS": {
>   "offHeapGets": 0,
>   "offHeapPuts": 0,
>   "offHeapHits": 0,
>   "offHeapMisses": 0,
>   "offHeapAllocatedSize": 0,
>   "size": 1729,
>   "keySize": 1729,
>   "txThreadMapSize": 0,
>   "txXidMapSize": 0,
>   "txCommitQueueSize": 0,
>   "txPrepareQueueSize": 0,
>   "txCommittedVersionsSize": 7,
>   "txRolledbackVersionsSize": 7,
>   "txDhtThreadMapSize": -1,
>   "txDhtXidMapSize": -1,
>   "txDhtCommitQueueSize": 0,
>   "txDhtPrepareQueueSize": 0,
>   "txDhtCommittedVersionsSize": -1,
>   "txDhtRolledbackVersionsSize": -1,
>   "writeBehindFlushSize": -1,
>   "writeBehindStoreBatchSize": -1,
>   "keysToRebalanceLeft": 0,
>   "rebalancingKeysRate": 0,
>   "rebalancingBytesRate": 0,
>   "keyType": "java.lang.Object",
>   "empty": false,
>   "valueType": "java.lang.Object",
>   "storeByValue": true,
>   "writeBehindEnabled": false,
>   "writeBehindFlushFrequency": -1,
>   "writeBehindFlushThreadCount": -1,
>   "readThrough": false,
>   "writeThrough": false,
>   "statisticsEnabled": true,
>   "managementEnabled": true,
>   "cacheRemovals": 0,
>   "cacheGets": 0,
>   "cachePuts": 0,
>   "cacheHits": 0,
>   "cacheMisses": 0,
>   "cacheHitPercentage": 0.0,
>   "cacheMissPercentage": 0.0,
>   "cacheEvictions": 0,
>   "averageGetTime": 0.0,
>   "averagePutTime": 0.0,
>   "averageRemoveTime": 0.0,
>   "averageTxCommitTime": 0.0,
>   "averageTxRollbackTime": 0.0,
>   "cacheTxCommits": 0,
>   "cacheTxRollbacks": 0,
>   "offHeapRemovals": 0,
>   "offHeapEvictions": 0,
>   "offHeapHitPercentage": 0.0,
>   "offHeapMissPercentage": 0.0,
>   "offHeapEntriesCount": 1729,
>   "heapEntriesCount": 0,
>   "offHeapPrimaryEntriesCount": 1729,
>   "offHeapBackupEntriesCount": 0,
>   "dhtEvictQueueCurrentSize": -1,
>   "txStartVersionCountsSize": 0,
>   "txDhtStartVersionCountsSize": 0,
>   "totalPartitionsCount": 512,
>   "rebalancingPartitionsCount": 0,
>   "writeBehindTotalCriticalOverflowCount": -1,
>   "writeBehindCriticalOverflowCount": -1,
>   "writeBehindErrorRetryCount": -1,
>   "writeBehindBufferSize": -1
> }
>
>
>
> With best regards
> Alisher Alimov
> [email protected]
>
>
>

Reply via email to