-
Notifications
You must be signed in to change notification settings - Fork 169
Closed
Description
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:
- 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.
- 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.
- 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.