We are facing a intermittent issue related to JMS where the JMS connection is being closed and we need to restart the application in order to restart it. Is there any solution to this recurring JMS exception

Gouse Zaheed Shaik 0 Reputation points
2024-06-06T08:35:55.24+00:00

We are facing a intermittent issue related to JMS where the JMS connection is being closed and we need to restart the application in order to restart it. Is there any solution to this recurring JMS exception. This is occurring mostly during the weekends.

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,408 questions
{count} votes

1 answer

Sort by: Most helpful
  1. ajkuma 24,971 Reputation points Microsoft Employee
    2024-06-10T09:09:42.78+00:00

    @Gouse Zaheed Shaik , Apologies for the delayed response from over the weekend.

    I’m sorry to hear about the issues you’re experiencing with your Azure App Service. I understand the issue is mostly seen during the weekend.

    Just to isolate the issue, typically, one major cause for intermittent connection issues is hitting a limit while making new outbound connections. The limits you can hit include TCP Connections and SNAT ports. Each instance on Azure App service is initially given a preallocated number of 128 SNAT ports.

    When applications or functions rapidly open a new connection, they can quickly exhaust their preallocated quota of the 128 ports. They’re then blocked until a new SNAT port becomes available, either through dynamically allocating more SNAT ports, or through reuse of a reclaimed SNAT port. If your app runs out of SNAT ports, it will have intermittent outbound connectivity issues.

    Ref: Troubleshooting intermittent outbound connection errors in Azure App Service - This article provides more information on, and troubleshooting methodologies for, exhaustion of source network address translation (SNAT) ports.

    Here are a few solutions that let you avoid SNAT port limitations:

    • Connection pools: By pooling your connections, you avoid opening new network connections for calls to the same address and port.
    • Service endpoints: You don’t have a SNAT port restriction to the services secured with service endpoints.

    --You might also want to check out the new diagnostic tool ‘Network/Connectivity Troubleshooter’ available now in the Diagnose & Solve Problems blade. This guided troubleshooter takes you step by step to understand your issue and provide curated solutions based on your inputs.

    --Please check Service Health and Resource Health status for more info.

    Azure Service Health provides you with a customizable dashboard which tracks the health of your Azure services in the regions where you use them Azure Resource Health helps you diagnose and get support for service problems that affect your Azure resources. It reports on the current and past health of your resources.

    If feasible, please share your Azure WebApp name/URL for additional investigation.

    Kindly let us know how it goes, I'll follow up with you further.


    If the answer helped (pointed, you in the right direction) > please click Accept Answer - it will benefit community members to find the answers quickly. 

    0 comments No comments