#11572: Very high memory usage by big sitemaps
--------------------------+-------------------------------------------------
 Reporter:  riklaunim     |       Owner:  nobody    
   Status:  new           |   Milestone:            
Component:  Contrib apps  |     Version:  1.0       
 Keywords:                |       Stage:  Unreviewed
Has_patch:  0             |  
--------------------------+-------------------------------------------------
 I'm using Py 2.5, Django 1.X, Nginx/FastCGI hosting at megiteam.pl. The
 site has a big sitemap - 9K elements, 1,7MB sitemap.xml file. The sitemap
 is done by the book with Sitemap framework:

 {{{
 class MainMap(Sitemap):
         changefreq = "never"
         priority = 0.5

         def items(self):
                 return JobOffer.objects.filter(published=True,
 inactive=False)

         def lastmod(self, obj):
                 return obj.published_at
 }}}
 The problem is that looking at memstat -v after requesting sitemap.xml
 shows that memory usage boosts from 6MB just after restart to 105MB, and
 keeps at that level for every next request of the sitemap (where the file
 is 1,7MB). If I limit the query to 1000 elements I get ~22MB memory usage.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/11572>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to