[Baypiggies] json using huge memory footprint and not releasing

David Lawrence david at bitcasa.com
Fri Jun 15 23:33:16 CEST 2012


This will probably be the course we have to take.



On Fri, Jun 15, 2012 at 2:30 PM, Aahz <aahz at pythoncraft.com> wrote:

> On Fri, Jun 15, 2012, David Lawrence wrote:
> >
> > When I load the file into json, pythons memory usage spike to about 1.8GB
> > and I can't seem to get that memory to be released.  I put together a
> test
> > case that's very simple:
> >
> > with open("test_file.json", 'r') as f:
> >     j = json.load(f)
>
> If you really need the memory released, do it in a subprocess.
> --
> Aahz (aahz at pythoncraft.com)           <*>
> http://www.pythoncraft.com/
>
> https://en.wikipedia.org/wiki/Mary_Anning
> _______________________________________________
> Baypiggies mailing list
> Baypiggies at python.org
> To change your subscription options or unsubscribe:
> http://mail.python.org/mailman/listinfo/baypiggies
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/baypiggies/attachments/20120615/3658540a/attachment.html>


More information about the Baypiggies mailing list