#462 Memory Leak: Unbounded _tenant_config_instances in config.py

closed high Created 2025-12-17 01:11 · Updated 2025-12-17 01:15

Description

Edit
engine/config.py:584,598-605 has unbounded _tenant_config_instances dict. Each unique tenant_id creates a TenantConfig instance that is cached forever. In multi-tenant deployments with many tenants, this causes memory growth. FIX: Add TTL-based expiration or max_size limit with LRU eviction.

Comments

Loading comments...

Context

Loading context...

Audit History

View All
Loading audit history...