我有n个azure函数被调用并向主题发送消息。同时,我得到以下异常:无法分配更多句柄。最大句柄数为4999。(QuotaExceeded(,StackTrace:在Azure上。Messaging。ServiceBus。Amqp。AmqpConnectionScope.CreateSendingLinkAsync(字符串实体路径,字符串标识符,AmqpConnection连接,TimeSpan超时,CancellationToken取消令牌(在Azure上。Messaging。ServiceBus。Amqp。AmqpConnectionScope。OpenSenderLinkAsync(字符串实体路径,字符串标识符,TimeSpan超时,CancellationToken取消令牌(在Azure上。Messaging。ServiceBus。Amqp。AmqpSender.CreateLinkAndEnsureSenderStateAsync(TimeSpan超时,CancellationToken取消令牌(位于Microsoft.Azure.Amqp.FaultTolerantAmqpObject1.OnCreateAsync(TimeSpan timeout) at Microsoft.Azure.Amqp.Singleton
1.GetOrCreateAsync(TimeSpan超时(位于Microsoft.Azure.Amqp.Singleton1.GetOrCreateAsync(TimeSpan timeout) at Azure.Messaging.ServiceBus.Amqp.AmqpSender.CreateMessageBatchInternalAsync(CreateMessageBatchOptions options, TimeSpan timeout) at Azure.Messaging.ServiceBus.Amqp.AmqpSender.<>c.<<CreateMessageBatchAsync>b__16_0>d.MoveNext() --- End of stack trace from previous location where exception was thrown --- at Azure.Messaging.ServiceBus.ServiceBusRetryPolicy.RunOperation[T1,TResult](Func
4操作,T1 T1,TransportConnectionScope作用域,CancellationToken cancellionToken(在Azure.Messageing.ServiceBus.ServiceBusRetryPolicy.RunOperation[T1,TResult](函数`4操作,T1 T1,TransportConnectionScope作用域,CancellationToken取消令牌(在Azure上。Messaging。ServiceBus。Amqp.AmqSender.CreateMessageBatchAsync(CreateMessageBatchOptions选项,CancellationToken取消令牌(在Azure.Messageing.ServiceBus.ServiceBusSender.CreateMessageBatchAsync(CreateMessageBatchOptions选项,CancellationToken取消令牌(
我应该采取什么措施来解决这个问题?
您超过了命名空间上的并发连接数,即5000。减少函数的并发性,并检查是否有其他使用者/生产者连接到命名空间,占用所有连接。