-
Notifications
You must be signed in to change notification settings - Fork 2.2k
[BUG] Azure Service Bus SDK - Possible Memory Leak #47508
Copy link
Copy link
Closed
Labels
ClientThis issue points to a problem in the data-plane of the library.This issue points to a problem in the data-plane of the library.Service AttentionWorkflow: This issue is responsible by Azure service team.Workflow: This issue is responsible by Azure service team.Service BusbugThis issue requires a change to an existing behavior in the product in order to be resolved.This issue requires a change to an existing behavior in the product in order to be resolved.customer-reportedIssues that are reported by GitHub users external to the Azure organization.Issues that are reported by GitHub users external to the Azure organization.needs-team-attentionWorkflow: This issue needs attention from Azure service team or SDK teamWorkflow: This issue needs attention from Azure service team or SDK team
Metadata
Metadata
Assignees
Labels
ClientThis issue points to a problem in the data-plane of the library.This issue points to a problem in the data-plane of the library.Service AttentionWorkflow: This issue is responsible by Azure service team.Workflow: This issue is responsible by Azure service team.Service BusbugThis issue requires a change to an existing behavior in the product in order to be resolved.This issue requires a change to an existing behavior in the product in order to be resolved.customer-reportedIssues that are reported by GitHub users external to the Azure organization.Issues that are reported by GitHub users external to the Azure organization.needs-team-attentionWorkflow: This issue needs attention from Azure service team or SDK teamWorkflow: This issue needs attention from Azure service team or SDK team
Describe the bug
Running a
ServiceBusProcessorClientwith#sessionProcessoris potentially leaking when there are no messages produced on the queue.Same symptoms as #44228.
Exception or Stack Trace
N/A
To Reproduce
Run the following snippet for an extended period of time, observe Heap usage:
Code Snippet
See above.
Expected behavior
Stable heap usage with objects properly released.
Screenshots
N/A
Setup (please complete the following information):
Additional context
We noticed this while the consumers are idle, i.e. no messages produced on the queue. However, this prevents us from switching to Service Bus confidently, since we see an increased heap usage when the listeners aren't active with the possibility of a leak. As I mentioned,
Our use-case is a high throughput queue (thousands of messages per minute) with guaranteed FIFO processing. This was already reported back in February by another user, see #44228.
Information Checklist