There are a lot of questions regarding how to recycle App Pool and restart App Domain. They are a little bit different from my scenario.
I have only App Domain in a App Pool. I'm trying to restart App Domain automatically using the following code, if OutOfMemoryException
is thrown.
HttpRuntime.UnloadAppDomain();
Question:
According to my understanding of this SO anwser, I only have one App Domain in a App Pool. Therefore, clearing of App Domain should be same as clearing of App Pool because I only need to clear one memory region.
Or do I still have to clear App Pool like this?