Copied to clipboard

Flag this post as spam?

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


  • Kevin Lawrence 183 posts 349 karma points
    Jun 03, 2013 @ 14:39
    Kevin Lawrence
    0

    6.0.5 - Importing 1000's of nodes, OutOfMemoryException

    Hi all

    I'm trying to import around 12,500 nodes into v6.0.5 using the new ContentService API.  Unfortunately the memory usage seems to ramp up quite a bit and at around 3000 nodes I get an OOM exception.

    I'm importing using my own code and I've eliminated any memory leaks outside of the core Umbraco calls, is there anyway I can prevent it running out of memory?

    Thanks

    Kev

  • Kevin Lawrence 183 posts 349 karma points
    Jun 03, 2013 @ 16:06
    Kevin Lawrence
    0

    Just to add to this, it also happens when I try to publish several thousand nodes, memory gets to about 850MB and then throws an OOM exception.

    Which rules out my code that is doing the import.

    Thanks

  • Richard Soeteman 3875 posts 12037 karma points MVP
    Jun 04, 2013 @ 16:46
    Richard Soeteman
    0

    Are you running all in one transaction? Might be worth to split up?

  • Kevin Lawrence 183 posts 349 karma points
    Jun 04, 2013 @ 17:17
    Kevin Lawrence
    0

    Yes it is in one transaction, I was wondering if there's some in-memory cache I could be clearing?

  • Kevin Lawrence 183 posts 349 karma points
    Jun 04, 2013 @ 18:08
    Kevin Lawrence
    0

    I've just discovered:

    ApplicationContext.Current.ApplicationCache.ClearAllCache()

    I will see if this improves the situation.

    Thanks

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies