functions runtime slow to start after change deteceted
See original GitHub issueAfter making a change to a file, the functions runtime is slow to restart.
Repro steps
Provide the steps required to reproduce the problem
-
Install the functions runtime as part of an Azure Web App
-
Make a change to a file
Expected behavior
I’d expect that the runtime would go from starting to running relatively quickly.
Actual behavior
It’s sometimes absurdly slow (15-20min), even when changing a single file.
Related information
I’m running functions written in Node on Functions 1.0.10690. I see this issue mainly if I need to debug and make a quick change through FTP. When I deploy using my CI server, which uses Web Deploy, this seems to happen less often.
I also tend to see this error in my logs during this change from starting to pending:
Failed to copy job files: System.Threading.ThreadAbortException: Thread was being aborted.
at Kudu.Core.Infrastructure.OperationManager.Attempt[T](Func`1 action, Int32 retries, Int32 delayBeforeRetry, Func`2 shouldRetry)
at Kudu.Core.Infrastructure.OperationManager.Attempt(Action action, Int32 retries, Int32 delayBeforeRetry)
at Kudu.Core.Jobs.BaseJobRunner.CacheJobBinaries(JobBase job, IJobLogger logger)
Issue Analytics
- State:
- Created 7 years ago
- Comments:12 (5 by maintainers)
Top Results From Across the Web
Azure Function App is very slow, but only sometimes
AFAIK in Azure Functions,. After 5 minutes of inactivity, Function App goes to the cold state. To come out of it, 10 seconds...
Read more >Improve the performance and reliability of Azure Functions
This article provides guidance to improve the performance and reliability of your serverless function apps. For a more general set of Azure ...
Read more >How we improved the performance of our Azure functions with ...
Another way to improve the cold start time is to reduce the number of cold starts that occur. One way to do this...
Read more >Cold Starts in Azure Functions
PowerShell functions are especially slow to start with values from 4 to 27 seconds. View detailed distributions: Cold Start Duration per ...
Read more >Optimize Angular's change detection - web.dev
When facing runtime slowdowns in an Angular app: Profile the application with Chrome DevTools to see where the slowdowns are coming from.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’ve updated the install step wiki with a note about this as well.
@mathewc that appears to have worked perfectly! My jobs do have a number of NPM dependencies, so that would explain things.
I appreciate your help!
Cheers.