Hangfire Crashing IIS

Hi,

Any ideas why Hangfire is using up a lot of IIS memory and crashing IIS?

Can Hangfire not handle bigger jobs?

Sometimes the bigger jobs run and sometimes they crash IIS. There are no jobs running at the same time. Not sure why it sometimes crashes IIS and sometimes run…

Wouldn’t Hangfire just handle its own exception and fail the job instead of crashing?

Any ideas?

I’m not aware of any memory issues related to Hangfire itself, usually they are related to background job implementation. The most reliable way to diagnose such issues is to enable dump generation on crashes (Collect Dumps on Crash - .NET | Microsoft Learn) and inspecting it (Debug a memory leak tutorial - .NET | Microsoft Learn) to see what types are leaking and their roots. You can post collected data here, I might be able to give some information.