# Hangfire causes application performance issue

**URL:** <https://discuss.hangfire.io/t/hangfire-causes-application-performance-issue/809>\
**Category:** bug?\
**Tags:** logging\
**Created:** [March 26, 2015, 2:58pm UTC](https://discuss.hangfire.io/t/hangfire-causes-application-performance-issue/809 "2015-03-26T14:58:24Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rexhep\_Kqiku](https://dub1.discourse-cdn.com/flex017/user_avatar/discuss.hangfire.io/rexhep_kqiku/32/197_2.png) [@Rexhep\_Kqiku](https://discuss.hangfire.io/u/Rexhep_Kqiku)\
**Post date:** [March 26, 2015, 2:58pm UTC](https://discuss.hangfire.io/t/hangfire-causes-application-performance-issue/809/1 "2015-03-26T14:58:24Z")

</div>

I’m using Hangfire in a [ASP.NET](http://ASP.NET) MVC5 application. Did the configurations as described in the documentation.  
Everything works fine, but I can notice that it causes application performance issue. Worth to mention that it’s also blocking Glimps to load correctly.  
After inspecting the code, I removed these lines of code under Configuration in OWIN Startup class and application starts to perform correctly, also Glimps loads correctly.

`
            app.UseHangfire(config =>
            {
                config.UseSqlServerStorage("AppContext");
                config.UseServer();
            });
`

---

<div class="post-metadata">

**Author:** ![nirinchev](https://dub1.discourse-cdn.com/flex017/user_avatar/discuss.hangfire.io/nirinchev/32/122_2.png) [@nirinchev](https://discuss.hangfire.io/u/nirinchev)\
**Post date:** [March 28, 2015, 11:18am UTC](https://discuss.hangfire.io/t/hangfire-causes-application-performance-issue/809/2 "2015-03-28T11:18:47Z")

</div>

What do you mean by application performance issue? Is your application slower and if so, have you profiled why? I’m using it on a WebApi project and haven’t noticed any performance implications.

---

<div class="post-metadata">

**Author:** ![Rexhep\_Kqiku](https://dub1.discourse-cdn.com/flex017/user_avatar/discuss.hangfire.io/rexhep_kqiku/32/197_2.png) [@Rexhep\_Kqiku](https://discuss.hangfire.io/u/Rexhep_Kqiku)\
**Post date:** [March 30, 2015, 11:49am UTC](https://discuss.hangfire.io/t/hangfire-causes-application-performance-issue/809/3 "2015-03-30T11:49:32Z")

</div>

Yes, it’s causing application to be slower.  
I’ve tried to profile using Glimpse, but the problem is that it’s blocking Glimpse also. Once I comment code above, application works normally and I’m able to use Glimpse.

---

<div class="post-metadata">

**Author:** ![Rexhep\_Kqiku](https://dub1.discourse-cdn.com/flex017/user_avatar/discuss.hangfire.io/rexhep_kqiku/32/197_2.png) [@Rexhep\_Kqiku](https://discuss.hangfire.io/u/Rexhep_Kqiku)\
**Post date:** [March 30, 2015, 12:23pm UTC](https://discuss.hangfire.io/t/hangfire-causes-application-performance-issue/809/4 "2015-03-30T12:23:31Z")

</div>

@nirinchev I’ve just tried to use MiniProfiler, but Hangfire also blocking MiniProfiler.

---

<div class="post-metadata">

**Author:** ![Rexhep\_Kqiku](https://dub1.discourse-cdn.com/flex017/user_avatar/discuss.hangfire.io/rexhep_kqiku/32/197_2.png) [@Rexhep\_Kqiku](https://discuss.hangfire.io/u/Rexhep_Kqiku)\
**Post date:** [April 7, 2015, 8:35am UTC](https://discuss.hangfire.io/t/hangfire-causes-application-performance-issue/809/5 "2015-04-07T08:35:41Z")

</div>

Found the solution 😄  
I’ve configured nlog to save logging files under application bin directory, once I changed directory, application worked normally.

---

<div class="post-metadata">

**Author:** ![odinserj](https://dub1.discourse-cdn.com/flex017/user_avatar/discuss.hangfire.io/odinserj/32/648_2.png) [@odinserj](https://discuss.hangfire.io/u/odinserj)\
**Post date:** [April 8, 2015, 11:09am UTC](https://discuss.hangfire.io/t/hangfire-causes-application-performance-issue/809/6 "2015-04-08T11:09:46Z")

</div>


