Skip to content

Add Upper Limits to Search Log and Click Log Queue Sizes #2863

@marevol

Description

@marevol

We have implemented a mechanism to limit the maximum size of the search log and click log queues to prevent excessive memory usage. When the respective queue size exceeds the configured limit, a warning is logged, and the log entry is skipped.

Details:

  1. Search Log Queue
  • Added a size check to addSearchLog in SearchLogHelper.java.
  • If the size exceeds the configured limit (logging.search.max.queue.size), the log entry is skipped.
  1. Click Log Queue
  • Added a size check to addClickLog in SearchLogHelper.java.
  • If the size exceeds the configured limit (logging.click.max.queue.size), the log entry is skipped.
  1. Configuration Updates
  • Introduced two new configuration properties in fess_config.properties:
  • logging.search.max.queue.size: Sets the maximum size of the search log queue.
  • logging.click.max.queue.size: Sets the maximum size of the click log queue.
  • Default values for both have been set to 10000.

This change ensures more stable memory usage by avoiding unbounded growth of log queues.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions