Class IndexingStatsManager

java.lang.Object
com.atlassian.jira.issue.index.IndexingStatsManager

public class IndexingStatsManager extends Object
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 Details

  • 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

      @EventListener public void onReindexAllStarted(ReindexAllStartedEvent reindexAllStartedEvent)
    • onReindexAllCompleted

      @EventListener public void onReindexAllCompleted(ReindexAllCompletedEvent reindexAllCompletedEvent)
    • onReindexAllCancelled

      @EventListener public void onReindexAllCancelled(ReindexAllCancelledEvent reindexAllCancelledEvent)
    • onPeriodicStats

      public void onPeriodicStats()
      prints periodic field indexer stats to log; note that the period of calling this method determines stats snapshot period