I’m taking a short break from Hangfire series, but I will get back to it.
This time - Where did my memory go ? Or to be more exact: Why is this using so much memory?
The story starts with one IIS application pool using around 6 Gigabytes of memory on one of our test environments. It was several times above the values that we expected it to use, so we decided to investigate.
Without much thinking we fired up Visual Studio installed on the test server, and attached to the process. Since the application was build in Debug mode we had all the pdb files in the website folder.
Do I have your attention now? The above paragraph is of curse a joke and a bunch of anti patterns. Don’t do any of them!Continue reading...