Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • John Ligtenberg 53 posts 214 karma points
    Oct 08, 2015 @ 13:49
    John Ligtenberg
    0

    MiniProfiler in Umbraco 7.3

    Is the MiniProfiler still working properly in Umbraco 7.3?

    All the results I get to see are from the Umbraco backoffice.

    One of the calls to /mini-profiler-resources/results gives a 500 error, RecursionLimit exceeded, on JavaScriptSerializer.SerializeValue

  • James Jackson-South 489 posts 1747 karma points c-trib
    Nov 05, 2015 @ 05:18
    James Jackson-South
    0

    Hi John,

    Did you ever find a solution to this? I've just discovered the same issue.

  • Shannon Deminick 1524 posts 5270 karma points MVP 2x
    Nov 05, 2015 @ 06:33
    Shannon Deminick
    0

    I've not seen this issue, if you have steps to replicate please create and issue on the tracker

  • Dave Woestenborghs 3504 posts 12133 karma points MVP 8x admin c-trib
    Nov 05, 2015 @ 07:56
    Dave Woestenborghs
    0

    We haven't seen any issues with the mini profiler in 7.3

    Dave

  • Jeavon Leopold 3072 posts 13628 karma points MVP 10x admin c-trib
    Nov 05, 2015 @ 08:23
    Jeavon Leopold
    0

    In a application started event you need to add this

    MiniProfiler.Settings.MaxJsonResponseSize = 104857600;

    (Sorry for crap formatting, posted from iPhone)

  • Jeavon Leopold 3072 posts 13628 karma points MVP 10x admin c-trib
    Nov 05, 2015 @ 12:26
    Jeavon Leopold
    0

    Now I have a computer here is the whole thing:

    namespace MyProject.Events
    {
        using StackExchange.Profiling;
        using Umbraco.Core;
    
        public class UmbracoEvents : ApplicationEventHandler
        {
            protected override void ApplicationStarted(UmbracoApplicationBase umbracoApplication, ApplicationContext applicationContext)
            {
                // Set MaxJson size for Miniprofiler
                MiniProfiler.Settings.MaxJsonResponseSize = 104857600;
            }
        }
    }
    
  • James Jackson-South 489 posts 1747 karma points c-trib
    Nov 05, 2015 @ 23:05
    James Jackson-South
    0

    Hi Shannon, looking into it a bit further it might not be an issue specific to Umbraco... I think

    Miniprofiler only offers an option to change the MaxJsonResponseSize, (Thanks Jeavon for that snippet) but not the recursion limit which is odd.

    What I can't tell is whether the limit is being exceed by something I am doing or by something within Umbraco. There's not enough info in the exception message just now to be sure so I'll probably have to download the source and attach to the process.

    It's vital I figure this out anyway as I'm experience some severe slow down on a site we've just deployed to Azure (6x slower), that's with Examine config changes, trimming fcn etc.

    Cheers for the input. Appreciate it!

    P.S. The version of MiniProfiler that bundles with Umbraco is really old (~2.5 years) and un-upgradeable. Is there a specific reason for this?

  • John Ligtenberg 53 posts 214 karma points
    Nov 06, 2015 @ 13:13
    John Ligtenberg
    0

    Jeavon's solution did not solve the problem for me, I still get the Recursion Limit Exceeded error.

Please Sign in or register to post replies

Write your reply to:

Draft