newrelic-dotnet-agent icon indicating copy to clipboard operation
newrelic-dotnet-agent copied to clipboard

Option to disable FileSystemWatcher in InstrumentationWatcher

Open recaro opened this issue 2 years ago • 2 comments
trafficstars

Is your feature request related to a problem? Please describe.

Using the Agent in a docker container with read-only filesystem no new extension files are added after startup. Agent monitors extensions folder using FileSystemWatcher that starts a dedicated thread.

Feature Description

Configuration option to disable FileSystemWatcher from watching extensions folder in InstrumentationWatcher

Additional context

Each FileSystemWatcher creates dedicated thread. This would provide a way to reduce the number of threads (and inotify instances) used by the application for file watchers in case instrumentation changes are not required after startup.

Priority

Nice to Have

recaro avatar Mar 15 '23 06:03 recaro

https://issues.newrelic.com/browse/NEWRELIC-7520

@recaro thank you for submitting this feature request. I passed this information on to our product manager so that it can be prioritized.

nrcventura avatar Mar 15 '23 18:03 nrcventura