Image in fileshare not showing up some time

MoTaar 310 Reputation points
2024-02-16T14:41:41.7666667+00:00

Hello, I am having some pictures setup on my web app that get loaded from azure files storage. The issue I am having is that the pictures doesn't load some time and it's too slow to load. Any Idea please?

Azure Files
Azure Files
An Azure service that offers file shares in the cloud.
1,186 questions
Azure Storage Accounts
Azure Storage Accounts
Globally unique resources that provide access to data management services and serve as the parent namespace for the services.
2,765 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,046 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Sumarigo-MSFT 44,081 Reputation points Microsoft Employee
    2024-02-16T16:35:40.2433333+00:00

    @MoTaar Welcome to Microsoft Q&A Forum, Thank you for posting your query here!

    It seems like you are having trouble displaying an image from a file share that you have mounted on an Azure web app & slow performance issue.

    Check your network connection: Slow loading times and intermittent failures can also be caused by a slow or unreliable network connection.

    There could be several reasons why the image is not loading.
    Do you get any error message or error code, If so can you please share the screenshot?

    1. Try to download same image through portal and Storage explorer tool and let me know the status
    2. Check if the image file is corrupted. Try opening the image file on your local machine to see if it is corrupted. If the file is corrupted, you may need to upload a new copy of the image file to the file share.

    You are using Azure speed test tool to check the speed: https://www.azurespeed.com/Azure/Download am I correct ?

    There is no throttling on the Azure side, refer to below article. If the network and client machine can handle the traffic then we will send it. Here's a guide for troubleshooting high E2E latency: https://learn.microsoft.com/en-us/azure/storage/common/storage-monitoring-diagnosing-troubleshooting#metrics-show-high-AverageE2ELatency-and-low-AverageServerLatency

    • Can you use a content delivery network (CDN) to cache static content and reduce the load on your web server.
    • Try to optimize your web application code and database queries to reduce the amount of data that needs to be transferred between the server and the client.

    Performance tuning for file servers Can you download PerfInsights tool, for Performance data collection Windows
    Using PerfInsights:

    • Execute PerfInsights using the Azure Files scenario: PerfInsights.exe /r azurefiles /sr 9971**9
    • Select Y to agree to share diagnostic information
    • Select Y to agree PerfInsights EULA.
    • Reproduce the performance issue or make sure that it's occurring.
    • When enough data is collected , press any key to stop diagnostic data collection.

    Retrieve the compressed file created under the current folder with format similar to "CollectedData_YYYY-MM-DD_HH-MM-FFF.zip"

    There could be several reasons why your web application is taking a long time to load content from Azure file share. Here are a few things you can check: Network latency

    . There could be several reasons why your web application is taking a long time to load content from Azure file share. Here are a few things you can check:

    1. Network latency: Check the network latency between your AKS cluster and the Azure file share. You can use tools like ping or traceroute to diagnose network issues.
    2. Application performance: Check the performance of your web application. You can use tools like Azure Application Insights or Azure Monitor to monitor the performance of your application.

    Many factors might affect the performance of an Azure storage service from the client application perspective. These factors might operate in the storage service, the client, or the network infrastructure. You can take a look at the troubleshooting guideline here to determine the cause of client latency issues.

    Optimize your images: Large image files can take a long time to load, especially over a slow network connection. To improve the loading times of your images, you can optimize them by reducing their file size without sacrificing quality.

    If the issue still persist,  I would recommend you contact support, so If you have a support plan, I request you file a support ticket, else please do let us know, we will try and help you. Thank you for your cooperation on this matter and look forward to your reply.

    I hope this helps you diagnose the issue. Let me know if you have any further questions!

    ---Please do not forget to "Accept the answer” and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.