Repository navigation
Description
ChatbotX workers impose excessive resource pressure during startup, followed by persistent and recurring CPU usage spikes during idle. This occurs with no AI providers connected, no active chat events, and no user-generated workload. Under these conditions, CPU utilisation should remain near idle, with only minimal background processing.
The resource consumption appears disproportionately high relative to the actual workload, particularly when worker queues are empty or processing minimal activity.
System
- Dedicated server with 12 CPU cores and 16 GB of RAM.
- Docker compose
- Approximately 4 CPU cores and 6 GB RAM allocated to contain resource consumption.
Expected
- Workers should initialise without causing excessive CPU or memory pressure.
- CPU utilisation should remain consistently low when no chat events, AI operations, or background jobs are being processed.
- Idle workers should not continuously consume substantial system resources.
- Resource consumption should scale proportionally with actual workload rather than maintaining a high baseline.
Actual
- Significant CPU and memory pressure during worker startup.
- Persistent and recurring CPU spikes despite no active workload.
- CPU utilisation frequently reaches or exceeds 100%.
- Resource limits of approximately 4 CPU cores and 6 GB RAM were required to contain resource consumption and reduce host-wide resource pressure associated with OOM events.
- Resource constraints mitigate the impact on the host but do not address the underlying inefficiency.
Impact
The excessive resource consumption reduces available server capacity, introduces unnecessary operational overhead, and raises concerns about scalability and resource efficiency in production deployments.
A chatbot platform with no active conversations, AI integrations, or queued workloads should not require substantial dedicated compute resources simply to remain operational.
The recurring CPU spikes and memory pressure suggest that worker initialization, background scheduling, polling, or internal processing may be performing unnecessary operations while the system is idle.
The worker architecture should be reviewed to determine whether all consumers need to remain permanently initialised regardless of workload. A more resource-efficient approach would retain lightweight core workers while supporting on-demand activation and workload-based scaling for less frequently used processing services.
Idle workers should consume negligible CPU resources, and computationally intensive operations should not impose significant baseline resource overhead when their associated functionality is inactive.
Activity
viethung0o0 commentedon Nov 26, 2026
We've made some changes in v1.19.0 to cut down idle CPU and memory usage. Give the latest release a try when you get a chance, and let us know if you're still seeing it. Thanks for the report!