The message below in the logs indicates a corrupt traces index/file:
[ERROR] [Lucene Merge Thread #0] [Manager] Uncaught Exception in Enterprise Manager: In thread Lucene Merge Thread #0 and the message is org.apache.lucene.index.MergePolicy$MergeException: org.apache.lucene.index.CorruptIndexException: doc counts differ for segment _0: fieldsReader shows 1000 but segmentInfo shows 3
Stop the EM and try any of these options.
Option 1: Run IndexRebuilder
Go to the tools directory of the Enterprise Manager, /opt/wily/prod/EM/Introscope22.214.171.124/tools and run IndexRebuilder.sh
The script requires specifying the traces directory such as shown in the following example:
Option 2: Create new traces directory
If the first option did not work, stop the Enterprise Manager, rename the traces directory (/opt/wily/prod/EM/Introscope126.96.36.199/traces) to traces_old and restart the Enterprise Manager. This will automatically recreate a new traces directory.
Note: EM has to be stopped while performing any of the above activity.