We have a weird situation in production and need to grab a full memory dump. However, writing out the full minidump takes too much time. As a result, IIS recycles the process while the dump is being taken.
We cannot increase this timeout in IIS, because this is a live pod and we do not want other web servers in the farm to be affected.
Is it possible to somehow let IIS know that this particular process should not be recycled? Or any other way to be able to take the full minidump in our circumstances?
The minidump is written to the local file system.
EDIT 1
This is not a duplicate of my other question How to take a minidump of a web application on concrete exception running in a farm with periodic recycling? because the challenges are different. In this question I cope with IIS killing the web process due to inactivity because of the dump having been taken. In the other question the problem is that we cannot attach to a web process and wait for exception - the process will be recycled at one point and we will have to reattach. This is not a human friendly process. Plus it must be replicated across all the machines on the farm. Again, not human friendly.