Package com.atlassian.jira.issue.index
Class IndexingStatsManager
java.lang.Object
com.atlassian.jira.issue.index.IndexingStatsManager
Responsible for printing to log (periodically, on re-index) indexing statistics.
What can I do with this log?
Run: `grep indexing-stats atlassian-jira.log`
You should see following log messages:
- [indexing-stats] Top 10 addIndex total... - periodic log message shows top 10 most expensive (in therms of indexing/addIndex) fields since last re-index or system start
- [indexing-stats] Top 10 addIndex snapshot... - periodic log message shows top 10 most expensive (in therms of indexing/addIndex) fields since previous snapshot stats
- [indexing-stats] field indexing cost: {order:.. - after full-reindex log message shows all fields indexing cost (in therms of indexing/addIndex)
In general this log is showing you the cost of loading the data (from DB) to index.
See also MonitoringIndexWriter
for [lucene-stats] log, which is showing the "lucene" side cost of indexing.
-
Constructor Summary
ConstructorsConstructorDescriptionIndexingStatsManager
(FieldIndexerManager fieldIndexerManager, CustomFieldManager customFieldManager, IssueIndexer issueIndexer, com.atlassian.event.api.EventPublisher eventPublisher, IndexingStatsEventPublisher indexingStatsEventPublisher, NonNullCustomFieldProviderManager nonNullCustomFieldProviderManager) -
Method Summary
Modifier and TypeMethodDescriptionvoid
prints periodic field indexer stats to log; note that the period of calling this method determines stats snapshot periodvoid
onPluginFrameworkShutdown
(com.atlassian.plugin.event.events.PluginFrameworkShutdownEvent event) void
onPluginFrameworkStarted
(com.atlassian.plugin.event.events.PluginFrameworkStartedEvent event) void
onReindexAllCancelled
(ReindexAllCancelledEvent reindexAllCancelledEvent) void
onReindexAllCompleted
(ReindexAllCompletedEvent reindexAllCompletedEvent) void
onReindexAllStarted
(ReindexAllStartedEvent reindexAllStartedEvent)
-
Constructor Details
-
IndexingStatsManager
public IndexingStatsManager(FieldIndexerManager fieldIndexerManager, CustomFieldManager customFieldManager, IssueIndexer issueIndexer, com.atlassian.event.api.EventPublisher eventPublisher, IndexingStatsEventPublisher indexingStatsEventPublisher, NonNullCustomFieldProviderManager nonNullCustomFieldProviderManager)
-
-
Method Details
-
onPluginFrameworkStarted
@EventListener public void onPluginFrameworkStarted(com.atlassian.plugin.event.events.PluginFrameworkStartedEvent event) -
onPluginFrameworkShutdown
@EventListener public void onPluginFrameworkShutdown(com.atlassian.plugin.event.events.PluginFrameworkShutdownEvent event) -
onReindexAllStarted
-
onReindexAllCompleted
-
onReindexAllCancelled
-
onPeriodicStats
public void onPeriodicStats()prints periodic field indexer stats to log; note that the period of calling this method determines stats snapshot period
-