Copied to clipboard

Flag this post as spam?

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


  • Mark 4 posts 84 karma points
    May 09, 2017 @ 10:21
    Mark
    0

    System.OutOfMemoryException in Umbraco.Core.UmbracoApplicationBase

    Hi, we've just started getting System.OutOfMemoryException exceptions. Does anyone know what might be causing these or how to investigate?

    Error details below:

    2017-05-09 00:33:39,146 [P26432/D2/T14] ERROR Umbraco.Core.UmbracoApplicationBase - An unhandled exception occurred System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown. at Go10872(RegexRunner ) at System.Text.RegularExpressions.CompiledRegexRunner.Go() at System.Text.RegularExpressions.RegexRunner.Scan(Regex regex, String text, Int32 textbeg, Int32 textend, Int32 textstart, Int32 prevlen, Boolean quick, TimeSpan timeout) at System.Text.RegularExpressions.Regex.Run(Boolean quick, Int32 prevlen, String input, Int32 beginning, Int32 length, Int32 startat) at System.Text.RegularExpressions.Regex.IsMatch(String input, Int32 startat) at System.Text.RegularExpressions.Regex.IsMatch(String input) at Umbraco.Core.Persistence.Database.AddSelectClause[T](String sql) at Umbraco.Core.Persistence.Database.

  • Mark 6 posts 74 karma points
    May 11, 2017 @ 20:03
    Mark
    0

    Are you hosting on Azure? Did your site happen to spike from 300MB - 500MB of memory usage above 1GB?

    We started receiving messages like this out of the blue and noticed that the memory usage of our web app was out of control. Working with Azure support it looks like a problem with the event logging in azure.

    Azure support had us run a command through Kudu to make an eventlog file readonly and then restart our web app to see if the memory usage returned to normal, and so far that has worked.

  • Stephen 47 posts 270 karma points
    May 12, 2017 @ 13:16
    Stephen
    0

    What exactly did they tell you to do?

    We've just started getting this on a live site after upgrading to 7.6 - also hosted on Azure.

  • Mark 6 posts 74 karma points
    May 12, 2017 @ 14:23
    Mark
    100

    Sorry I didn't put it in the previous post, I'm waiting on confirmation from them to find out if what they had me do was temporary, or if there is a permanent fix coming. I also had to wait to make sure our memory didn't keep going back up on our webapp and that the change worked.

    What they had me do might be very specific to our case and might not work for you, so I suggest contacting Azure support. But here's the command that they had me run from kudu and then stop and start the web app and monitor its ram usage... use at your own risk (basically setting an eventlog to read only):

    Attrib +r D:\home\LogFiles\eventlog.xml

    Our problem appears to not be related our code, and there are millions of other ways that a memory leak could cause memory usage spikes, so this may or may not help you.

  • Mark 4 posts 84 karma points
    May 22, 2017 @ 12:36
    Mark
    0

    Site is hosted on Azure and setting Attrib +r D:\home\LogFiles\eventlog.xml seems to have completely cleared the problem.

    It has been running OK for about a week now.

    Thanks for you help!

Please Sign in or register to post replies

Write your reply to:

Draft