
public class OPerformanceStatisticManager extends Object
In case of gathering statistics for single thread statistic for all period is gathered and average values are provided. If you gather statistic for whole system time series of measurements are provided.
You can not measure statistic for whole system and for chosen threads at the same time.
To gather statistic for single thread use following workflow:
startThreadMonitoring()stopThreadMonitoring()
Instance of OSessionStoragePerformanceStatistic returned as result of call of last method will contain all
performance data are gathered during storage monitoring.
To gather statistic for whole system use following workflow:
startMonitoring()stopMonitoring()
You may access performance data both after you stopped gathering statistic and during gathering of statistic.
You may manipulate by manager directly from Java or from JMX from bean with name which consist of prefix MBEAN_PREFIX
and storage name.
If ODurableComponent participates in
performance monitoring it has to register itself using method registerComponent(String)
| Modifier and Type | Field and Description |
|---|---|
static String |
MBEAN_PREFIX
Prefix of name of JMX bean.
|
| Constructor and Description |
|---|
OPerformanceStatisticManager(OAbstractPaginatedStorage storage,
long intervalBetweenSnapshots,
long cleanUpInterval) |
| Modifier and Type | Method and Description |
|---|---|
long |
getAmountOfPagesPerOperation(String componentName)
Average amount of pages which were read from cache for component with given name during single data operation.
|
int |
getCacheHits() |
int |
getCacheHits(String componentName)
Percent of cache hits for component name of which is passed as method argument.
|
long |
getCommitTime() |
Set<String> |
getComponentNames() |
long |
getExclusiveWriteCacheSize() |
long |
getFullCheckpointCount() |
long |
getFullCheckpointTime() |
long |
getReadCacheSize() |
long |
getReadSpeedFromCacheInPages() |
long |
getReadSpeedFromCacheInPages(String componentName)
Read speed of data in pages per second on cache level for component name of which is passed as method argument.
|
long |
getReadSpeedFromFileInPages() |
long |
getReadSpeedFromFileInPages(String componentName)
Read speed of data from file system in pages for component name of which is passed as method argument.
|
OSessionStoragePerformanceStatistic |
getSessionPerformanceStatistic() |
long |
getWALCacheOverflowCount() |
long |
getWALFlushTime() |
long |
getWALLogRecordTime() |
long |
getWALSize() |
long |
getWALStartAOLogRecordTime() |
long |
getWALStopAOLogRecordTime() |
long |
getWriteCacheFlushOperationsTime() |
long |
getWriteCacheFuzzyCheckpointTime() |
long |
getWriteCacheOverflowCount() |
long |
getWriteCachePagesPerFlush() |
long |
getWriteCacheSize() |
long |
getWriteSpeedInCacheInPages() |
long |
getWriteSpeedInCacheInPages(String componentName)
Write speed of data in pages per second on cache level for component name of which is passed as method argument.
|
void |
registerComponent(String component)
Registers component as such one which participates in performance monitoring.
|
void |
registerMBean(String storageName,
int storageId)
Registers JMX bean for current manager.
|
void |
startMonitoring()
Starts performance monitoring only for whole system.
|
void |
startThreadMonitoring()
Starts performance monitoring only for single thread.
|
void |
stopMonitoring()
Stops monitoring of performance statistic for whole system.
|
OSessionStoragePerformanceStatistic |
stopThreadMonitoring() |
void |
unregisterMBean(String storageName,
int storageId)
Deregisters JMX bean for current manager.
|
public static final String MBEAN_PREFIX
public OPerformanceStatisticManager(OAbstractPaginatedStorage storage, long intervalBetweenSnapshots, long cleanUpInterval)
intervalBetweenSnapshots - Interval between snapshots of performance data for each thread statistic.cleanUpInterval - Interval between time series of performance data.OSessionStoragePerformanceStatisticpublic void startThreadMonitoring()
stopThreadMonitoring() is performed.public OSessionStoragePerformanceStatistic stopThreadMonitoring()
null if startThreadMonitoring() is not called.public void startMonitoring()
After call of this method you can not start monitoring on thread level till call of stopMonitoring() is performed.
public void stopMonitoring()
public void registerMBean(String storageName, int storageId)
storageName - Name of storage of given managerstorageId - Id of storage of given managerOStorage.getName(),
OIdentifiableStorage.getId()public void unregisterMBean(String storageName, int storageId)
storageName - Name of storage of given managerstorageId - Id of storage of given managerOStorage.getName(),
OIdentifiableStorage.getId()public void registerComponent(String component)
component - Component which participates in performance monitoring.public Set<String> getComponentNames()
public OSessionStoragePerformanceStatistic getSessionPerformanceStatistic()
null if none of both methods startMonitoring() or startThreadMonitoring() are called.public long getAmountOfPagesPerOperation(String componentName)
If null value is passed or data for component with passed in name does not exist then -1 will be returned.
componentName - Name of component data of which should be returned. Name is case sensitive.public int getCacheHits()
public int getCacheHits(String componentName)
-1 will be returned.componentName - Name of component data of which should be returned. Name is case sensitive.public long getCommitTime()
public long getReadSpeedFromCacheInPages()
public long getReadSpeedFromCacheInPages(String componentName)
-1 will be returned.componentName - Name of component data of which should be returned. Name is case sensitive.public long getReadSpeedFromFileInPages()
public long getReadSpeedFromFileInPages(String componentName)
-1
will be returned.componentName - Name of component data of which should be returned. Name is case sensitive.public long getWriteSpeedInCacheInPages()
public long getWriteSpeedInCacheInPages(String componentName)
-1 will be returned.componentName - Name of component data of which should be returned. Name is case sensitive.public long getWriteCachePagesPerFlush()
-1 if value is
undefined.public long getWriteCacheFlushOperationsTime()
-1 if
value is undefined.public long getWriteCacheFuzzyCheckpointTime()
-1 if
value if undefined.public long getFullCheckpointTime()
-1 if value is undefinedpublic long getFullCheckpointCount()
-1 if this value is undefined.public long getReadCacheSize()
-1 if value is undefined.public long getWriteCacheSize()
-1 if value is undefined.public long getExclusiveWriteCacheSize()
-1 if value is undefinedpublic long getWriteCacheOverflowCount()
-1 if this value is undefined.public long getWALSize()
-1 if value is undefinedpublic long getWALCacheOverflowCount()
-1
if value is undefinedpublic long getWALLogRecordTime()
-1 if value is undefined.public long getWALStartAOLogRecordTime()
-1 if value is
undefined.public long getWALStopAOLogRecordTime()
-1
if value is undefined.public long getWALFlushTime()
-1 if value is undefinedCopyright © 2009–2025 OrientDB. All rights reserved.