Azure / Azure/azure-functions-host

Add compilation count threshold triggering AppDomain recycle

Open
#3,062 2 comments 0 reactions 1 assignee Claimed by @fabiocav View on GitHub
Dominant language
C#
Stars
2k
Forks
482
Avg merge
2d 12h
Merged PRs (30d)
38

Description

When compiling CSX based functions, each new compilation will result in a new dll. If there are too many of these within a single AppDomain, it can cause problems - e.g. sandbox memory limits on page-file backed files. This has caused issues in long lived host instances.

We could experiment to find the right threshold and implement a simple compilation counter triggering an AppDomain restart.

Another possibility is to put intelligent caching in place such that when files/dependencies haven't changed, a cached compilation is used.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.