K.P.
K.P.

Reputation: 105

Exceptions in Microsoft.Azure.EventHubs.Processor Which resulted in CPU blocking

We have a web job which uses "Microsoft.Azure.EventHubs.Processor". It started throwing below exceptions all of a sudden after continuously running without any issues more than 1 month. which resulted in CPU blockage. see the graph. We had to restart the web job to bring down the CPU.

enter image description here

Is there a way to handle the above exceptions. We didn't catch these exceptions even though we are handling exceptions in ProcessEventsAsync method. What are we missing here? How can we make sure it won't happen again?

Upvotes: 1

Views: 235

Answers (1)

Serkant Karaca
Serkant Karaca

Reputation: 2032

Apparently the node that your web job was running on was out of available ports. Couple things you can do to investigate once you have a new repro:

  • Take a process dump and check threads, thread pool, and socket instances.
  • Check local ports, outgoing connections on the node. netstat command should list all ports in use.

Upvotes: 1

Related Questions