-
Bug
-
Resolution: Unresolved
-
Low
-
None
-
7.2.12, 7.4.6, 7.6.3
-
7.02
-
7
-
Severity 2 - Major
-
1
-
Summary
Lucene Search with unlimited PageFilter causes unnecessarily memory allocation for enterprise instances (1M+ issues).
In many places unlimited PageFilter is used in JQL queries (Agile board, plugins such as JQL Tricks). This leads to the allocation of an array which has number of documents items, where number of documents is typically greater than number of issues.
For 1M+ issues the object size usually is greater than G1HeapRegionSize/2 so it's humongous object. As part of JRASERVER-63665 there was change to optimize the Lucene search and implement Debug logging.
Jira prepares a search with a small limit set (1000) first and checks if totalHits is bigger. If it's bigger then we do a second search and we exactly know the limit now (totalHits from the previous search). I also added analytics to validate this limits and also added logs (debug level).
Expected Results
- Increase log level
- Fine tune limits.
- Throw an exception during a search, if someone will try to fetch a large amount of documents (100k+).
- derived from
-
JRASERVER-63665 Lucene Search with unlimited PageFilter causes unnecessary memory allocation
- Closed
- relates to
-
JRASERVER-65602 As an JIRA Administrator I want to make empty JQL return no data
- Closed
-
JSWSERVER-16546 As an JIRA Software Administrator I want to limit number of issues per board to prevent resource overuse
- Gathering Interest
- Mentioned in