[Tilesathome] lowzoom crash
Raphael Studer
studerap at gmail.com
Mon Aug 6 16:36:48 BST 2007
> > from "top":
> > PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
> > 32129 deelkar 15 0 3007m 831m 2452 S 20 82.4 0:57.47 lowzoom.pl
> > -----BEGIN PGP SIGNATURE-----
> > Version: GnuPG v1.4.7 (GNU/Linux)
> > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> I've seen nearly the same thing some moments ago.
> After 24% processing, the lowzoom.pl uses about 1000 mb VIRT and 600
> mb RES, whats nealry all on the machine i'm running it.
> As mutch as i understand the lowzoom algorithm:
> take 4 pictures (maybe first download them) and make a small one of it.
> Needing 1GB RAM for 4 Picutres sounds more as a memory leak as too less memory.
>
> The leaks could come from:
> line 267: $image = Image::Magick->new
> the $image is never destructed (maybe thats not needed in perl) or
> maybe its destructed on the perl site, but not in de Image::Magick
> library site.
Ooh, you very fast.
But didn't helped. Still very much memory used.
Even if you also undef $AA; undef $BB; undef $AB; undef $BA;
> The other cricical thing is the recursive call of lowZoom(x,y,z,max,status).
> I gues this could also be done with two loops (one from maxz to z, the
> other trough all tiles on a z level).
I belife its the recursive call. But as spaetz told, better use your
energy to push the ptoper lowzoom (wherever the name come from..)
Raphael
More information about the Tilesathome
mailing list