public class OPerformanceStatisticManager extends Object
startThreadMonitoring()
stopThreadMonitoring()
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()
MBEAN_PREFIX
and storage name.
If ODurableComponent
participates in
performance monitoring it has to register itself using method registerComponent(String)
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 |
getWALFlushTime() |
long |
getWALLogRecordTime() |
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 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.OSessionStoragePerformanceStatistic
public void startThreadMonitoring()
stopThreadMonitoring()
is performed.public OSessionStoragePerformanceStatistic stopThreadMonitoring()
null
if startThreadMonitoring()
is not called.public void startMonitoring()
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)
-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 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–2020 OrientDB. All rights reserved.