• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: CoreData huge memory usage - is this right ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CoreData huge memory usage - is this right ?


  • Subject: Re: CoreData huge memory usage - is this right ?
  • From: Martin Linklater <email@hidden>
  • Date: Mon, 17 Dec 2007 06:25:14 -0800

Following up on my earlier thread I have cleaned up a lot of my own memory leaks but I am still seeing CoreData take a lot of memory up. By the time my application has imported around 500,000 entries my application memory usage is over 2GB and my machine starts to crawl. At this point the SQLite store that I'm actually creating is around 20MB in size.

When I run my application through 'Instruments' and get it to trace Object Allocations I'm seeing a lot of memory (over 50% of total) being used by Core Data - at the [NSManagedObjectContext save:] method. This memory use just keeps growing and growing as my application executes.

I have disabled undo during import and I have set the stalenessInterval to 1.0. I have my own NSAutoreleasePool which gets drained every 1000 entries.

I must still be doing something silly - anyone got any ideas ?

Thank you.
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: CoreData huge memory usage - is this right ?
      • From: Diederik Hoogenboom <email@hidden>
    • Re: CoreData huge memory usage - is this right ?
      • From: "I. Savant" <email@hidden>
References: 
 >CoreData huge memory usage - is this right ? (From: Martin Linklater <email@hidden>)
 >Re: CoreData huge memory usage - is this right ? (From: email@hidden)
 >Re: CoreData huge memory usage - is this right ? (From: "I. Savant" <email@hidden>)
 >Re: CoreData huge memory usage - is this right ? (From: Martin Linklater <email@hidden>)
 >Re: CoreData huge memory usage - is this right ? (From: email@hidden)
 >Re: CoreData huge memory usage - is this right ? (From: Martin Linklater <email@hidden>)
 >Re: CoreData huge memory usage - is this right ? (From: Martin Linklater <email@hidden>)

  • Prev by Date: Bug with QCView, Spaces and transparent windows on Leopard. How do I report it to Apple?
  • Next by Date: Sending data from contextual menu plugin to Cocoa app
  • Previous by thread: Re: CoreData huge memory usage - is this right ?
  • Next by thread: Re: CoreData huge memory usage - is this right ?
  • Index(es):
    • Date
    • Thread